Cleaning up hub connection and forcing logout on connection error