None of the error cases in this function close this socket.