changes to disconnectFromHost()