Fixed an issue with clients disconnecting and the server not catching it