server catches and responds to client disconnecting now. Doesn't cause
crash anymore.