Improved the way disconnected clients are handled in the server