Creating a connected controller to treat ConnectionError and healthcheck