Fixed Application to close the connection for the master hub.