Fixed user client error when a server they are attached to is disconnected/shutdown.

This PR fixes: http://supa.me/jnX6Ey.png which is caused when a server that a user client is attached to is shutdown/disconnected.

I have only tested very briefly, but I no longer get the error when a server I'm attached to is shutdown.