HTTP Server: Avoid some warnings if the client closes the connection while we are in the middle of reading or writing to the socket.