core (EsxConnectionManager): added shutdownHook to close connections on exit