fixed disconnecting for logged in clients