Unregister sockets from iobroker during teardown for Nagios 4.