Log exceptions to the error log.

If these aren't caught, the agent crashes in the event, for example, that the plugin cannot connect to the supervisord process. Consider a reboot and the agent is started before the supervisord process. That means a reboot would always disable the agent on boot.