Possibly fix exceptions being thrown when client disconnects