OnShutdownAfterError

Called when an error occurred.