Fix exception in log when client disconnects