Server no longer crashes when the client disconnects.