Castle s08e18 Episode Script

Backstabber

[Sighs.]
Remind me, why am I doing this? Because I saved your ass in Marrakesh.
Uh, I let you save my ass, old man, so that you could impress little miss naughty-knickers, who you had a crush on.
[Both laugh.]
You know, for a couple of ex-spies, you sound a lot like sorority girls at spring break.
Hayley, this is Marcus.
He's going in with you.
Bryce told me you were a badass, but he didn't say you were an X-rated fantasy.
It's very hard to focus on how charming you are when your breath smells like a festival toilet.
Please tell me he's a better sneak than he is a pickup artist.
A simple job.
20 minutes tops.
My client is married to the VP of Manchester Energy International Paul Halston.
She's convinced he's cheating.
So, Marcus will bypass building security, while Hayley puts spyware on his office computer.
All right.
Let's do this.
Thanks again.
I owe you.
Yes, you do.
[Car door opens.]
[Suspenseful music plays.]
[Beep.]
[Computer beeping.]
What kind of spyware is this? It's taking forever to upload.
[Door opens.]
Shh! This is my office.
It's so fancy.
Oh, my goodness.
[Laughing.]
Look at that.
That's where I sit.
Mm.
Oh! Ah.
[Laughs.]
Talk about a breach of security.
I'd like to breach hers, that's for sure.
You cannot.
Yes, I can.
[Computer beeping.]
[Laughing.]
Oh, wow.
That's so cool.
I guess it's only fair, right? You gonna show me? [Laughs.]
She's way out of his league.
And yours, by the way.
[Scoffs.]
- Hmm? - Uh Is this nice? Whoop! 10 bucks he can't even figure out how to get that thing off.
Pass.
[Laughs.]
Oh, ooh.
[Laughing.]
It's okay.
[Both laughing.]
- All right.
Here, let's go.
- Hold on.
They're just getting to the good part.
Uh [Laughs.]
I'm leaving.
[Vacuum whirring.]
[Woman screams.]
You're up early.
Sleep okay? No, no, no, no.
No.
[Chuckles.]
Oh, did I snore? Yeah, but that's not the problem.
What was? You betrayed me.
What? How? When? Last night, in my dreams.
[Chuckling.]
But that's I-I What's, uh How What could I have possibly done that was so wrong? You know what? Never mind.
I-I don't even want to relive it.
Well, technically, you didn't live it.
You just dreamed it.
That's But I [Cellphone rings.]
Whatever I did, I am so sorry.
It's the precinct.
Why do I feel like a murder just saved my life? [Cellphone beeps.]
Beckett.
Martha: Okay, ladies, I have decided that I should change my autograph.
So what do you think? Gram, that looks exactly like your usual autograph.
No, no, no, no, no.
My usual autograph, when I am merely an actress, is like this, sort of carefree and and whimsical, whereas the other conveys insight, wisdom.
They're completely different.
Can't you see that? - Insight.
- Wisdom.
- Sure.
- Yes, absolutely.
Good job.
Now, if you'll excuse me, I have a business to run, especially since you-know-who is completely useless.
I heard that.
And if I'm so useless, why would Beckett ask me to consult on a murder? - Oh, Mother, new autograph.
- Yeah.
Nice.
Conveys wisdom, insight.
I like it.
[Keys rattle.]
All right, I just need my car keys, and I'm off to the Manchester Energy building.
Wait, murder at Manchester Energy? Who's the victim? All they said was "dead male.
" Ah.
You know, Rick, I have never seen you in action at an NYPD crime scene.
Well, perhaps you'd like to tag along and watch the crime-scene Jedi master at work.
Please tell me you do not refer to yourself as that.
Do you really? Perhaps you should come watch another time.
No, no, no.
Lead on, Castle Wan Kenobi.
You are my only hope.
I like that, but save it.
Say it in front of the guys.
[Siren wailing in distance.]
[Indistinct conversation.]
Esposito: Hayley, what happened? Did you lose a bet, and now Castle gets to drag you everywhere he goes? [Laughs sarcastically.]
Quite the contrary.
Hayley actually wanted to watch me solve yet another murder.
You mean help solve.
You help.
Yeah, remember, bro, you cannot solve a homicide without us.
While we sure as hell can solve one without you.
Really? Because on the ride over here, Rick was bragging about how the NYPD can't close a case.
Eh, t-those were just jokes that Out of context, it's not as funny.
I was rolling my eyes when I said it.
Thank you for stabbing me in the back.
You weren't the only one.
Our victim took his right between his T4 and T5 vertebrae.
Severed his spinal cord.
Died instantly.
I'm guessing from his outfit, he wasn't an employee? Esposito: Most likely some kind of thief.
Ryan: Pretty good one at that.
None of the security was tripped.
All the cameras were shut down.
Castle: Was anything stolen? What's there to steal? I mean, this is an energy-company office building.
The only thing of value are the furniture and the computers.
May I? Esposito: Clearly, we're helpless.
So, come on, Castle, please, solve this case for us.
Castle: Well, the only thing we know for sure is He was killed at 3:27 a.
m.
Very good, Hayley.
Whoa, wait.
What? How did you know that? Broken watch.
He must have busted it when he hit the ground.
Ryan: Esposito, we have Hayley.
- What do we need Castle for? - Yeah.
Castle: Super funny, guys.
That was lucky, and I can still help I.
D.
this victim, thank you very much.
Lanie, run a fingerprint scan.
Lanie: Okay, look, Castle, I don't know what all of this is about, but I don't tell you how to write your books, so don't tell me how to I.
D.
a body.
I've already performed a scan.
I'm just waiting for the results.
[Camera shutter clicks.]
Uh, do you think it's possible to identify the victim from the purchase of these mints? I guess we could.
It's far more efficient to use a fingerprint scanner.
[Gasps.]
Oh! Oh! I-I just bolloxed up a piece of evidence.
- I'm so sorry.
- Rookie move, right? Because you've never touched anything at a crime scene.
Make note that this is contaminated with Hayley's prints.
So sorry.
[Computer beeps.]
Oh, here we go.
We got an I.
D.
on our victim.
His name is Marcus Janek.
He's, uh, yeah A second-story man with a history of priors.
Looks like somebody caught Marcus in the act and killed him.
Or perhaps Marcus had a partner.
Partner? Well, Marcus is a burglar.
He would be on high alert.
The only reason he'd let someone behind him is if he trusted that person, I.
E.
a partner.
We find the person Marcus broke in here with, we find his killer.
Ryan: Very good, Castle.
Esposito: Yeah, that makes a lot of sense.
Why are you acting surprised? I don't know if it's important at all, but all those chairs are tucked in, except for that one.
Except for that one there.
Yep, I noticed that, too.
On the way in, way before she did.
So, Ned Werner.
Perhaps Ned was working late last night.
Maybe he saw something, or maybe he's Marcus' partner, an inside man.
Please, Detective Ryan.
Thank you, Detective Esposito.
After you boys.
[Ringing.]
Bryce: Hello? Bryce, Marcus is dead.
What the hell is going on? Does this have anything to do with your client? Hayley, I'm sorry.
I lied about everything.
There is no cheating husband, nor an angry wife.
What? [Sighs.]
How could you be so I had no choice.
Why? Who put you up to this? It doesn't matter.
Not anymore.
All you need to know is Code 44.
I'm sorry, Hayley.
I'm so sorry.
[Telephone clicks.]
Hey, Hayley, the guys are thinking that - Everything okay? - Uh, no.
A friend of mine's fallen ill, and, um, I've got to swing by, check in.
Of course.
[Gun cocks.]
[Rattling.]
[Keys rattling.]
[Lock clicks, door opens.]
[Woman grunts.]
S08E18 Backstabber [Sighs.]
Damn it, Alexis.
What are you doing here?! Well, I needed some case files for work.
But if this is how you get when people come over unannounced, I am happy to give you back your spare key.
Come on.
[Sighs.]
So, uh, redecorating? You need to leave now.
I see what's going on.
You've got your go-bag, your guns.
Is this why you wanted to go by that crime scene? Hayley, if you're in trouble, talk to me.
I can't.
It's not safe.
Okay, look, I did a favor for a friend last night At least, I thought he was a friend.
It was meant to be a quick P.
I.
job, but technically, I broke a few laws.
Okay, well, tell Beckett.
Tell my dad.
- They can help.
- No, they can't.
The friend I was working with We were in MI6 together.
He just phoned.
It turns out that the job wasn't legit.
Something bigger is going on, something bad enough that he told me to go Code 44.
Uh, what does Code 44 mean? It means abandon everything and everyone.
It means run for your life and don't look back.
You can't do that.
- I have no choice.
- Yes, you do.
After years of floating from one place to the next, you've finally found a real home here.
And I might be putting you and it in danger by staying.
I have to go now.
No, you have to stay and fight, figure out what's really going on here and fix it.
Please at least try.
Ah.
Hello, gentlemen.
Ooh.
Castle, you shouldn't show your face around here right now.
Yeah.
Beckett's pissed.
Uh, guys, it was a dream.
Well, dreams are doorways to the subconscious, Castle.
Yeah.
And what you did was just so Mm.
Wrong.
She told you what I did? What did I do? Well, we're sworn to secrecy, bro.
Yeah.
Unlike some, we would never do that to Beckett.
[Scoffs.]
It was a dream.
Well, dream or not, you did something in real life, and Beckett's subconscious is picking up on it.
You need to figure out what that was and come clean before it's too late.
Uh [Elevator bell dings.]
- Here's Ned.
- Let's go.
Hey.
How's your friend doing? Hmm? Oh, uh, much better, thanks.
You know, my curiosity's been piqued.
Can we watch his interview? Oh, sure.
Just wait till [Door closes.]
Okay, go.
So, Mr.
Werner, tell us where you were between 3:00 and 4:00 a.
m.
this morning.
Home.
Alone, asleep.
Well, that's weird, Ned, because your office computer says that you logged in at 3:02 a.
m.
, just minutes before the murder.
Oh, wait.
Yeah, no.
Yes, yes.
I was, uh Now that you mention it, yes, I did.
I-I popped into the office for a bit, just to do some work.
I did not see him there.
Esposito: So you were in the office alone? Yeah, completely alone.
You lying, little bastard.
What makes you think he's lying about being alone? Look at his neck.
See that tiny love bite? It's new.
So if Ned was alone last night, who gave him that? Esposito: Are you lying to us, Ned? No.
No, I would not lie.
Never.
No, no.
You lied about not being there.
No, I didn't.
I didn't lie.
I just forgot.
Oh, you forgot? So maybe there's something else you forgot.
Maybe you forgot that Marcus was your partner and you let him in.
- And you forgot that you killed him.
- Mm-hmm.
No.
[Sighs.]
- So you remember killing him? - Yes.
- That's perfect.
Wait! - No, no, no, no, no! Yes, yes, yes, I didn't forget, because, no, I didn't kill him.
[Sighs.]
Look, I don't know this man.
I've never seen him before in my life, so I couldn't have killed him.
So, your office computer says you logged out at 3:10 a.
m.
He was killed at 3:27 a.
m.
Actually, you could have killed him.
[Winches.]
Yeah.
- Wait.
3:27? - Mm-hmm.
No, no, no.
I could not have killed him, because I was in a Hytch ride by then.
See? Driver picked me up at 3:19 a.
m.
Hello, Neddie.
Let's have a chat, shall we? Are you a cop? The other detective said I was free to go! Not quite.
Ow, ow! [Screams.]
[Toilet flushes.]
[Indistinct shouting.]
Okay, okay, okay! Yes, yes, I will.
Yes! What the hell is going on in here? Well, this gentleman would like to revise his statement.
Yes, I'd like to revise my statement.
I was not alone in my office.
Uh, about 2:00 a.
m.
, in a bar, I met a smoking-hot blond chick.
[Clears throat.]
Who She's a very lovely young lady named Karla, and we hit it off, so I took her back to my office.
So, why did you lie to my detectives? Hayley: Because a security breach like this could get nasty Ned here fired.
Go on, tell the nice captain what you did.
I was trying to impress Karla, so I I logged into the company's closed server, and I shut down the power at 10 Downing Street for a second.
It didn't work, though.
We didn't have sex or nothing.
Wow [Scoffs.]
shocking.
No.
She was very frisky with me.
And, then, all of a sudden, she said she was bored, wanted to go home.
Why? I think maybe it was because I was having trouble undoing her corset.
In my defense, it was, like, crazy-complicated, and and and I was I was [Clears throat.]
I was very nervous.
So after you logged on to your computer is when Karla left you? Yes.
And as far as I know, the office was completely empty when I left.
Did you actually see Karla leave the building? N-No.
So it's possible she hid and then waited until you left? Hey, Ryan, Ned here wants to revise his statement.
Awesome.
Had a little accident? Don't touch anything, please.
Uh, excuse me, Hayley.
Where are you going? Hey, guys.
Is there a problem here? Hayley waterboarded Ned.
I did no such thing.
It was more of a swirly.
[Sighs.]
Never mind.
Look, apparently, Ned was tricked by some woman named Karla into gaining access to the building and the secured server, most likely to help Marcus rob the place.
Yeah, but clearly something happened between Marcus and Karla, because it looks like she's the one that drove that knife into his back.
And is that all? Why are you asking me? Because clearly something is going on with you, Hayley Something connected to this case.
You know, you can tell us.
I was in that office last night.
Okay, we need to talk now.
Really? You want to talk in here? [Chuckles.]
Yes.
This is where we question all of our murder suspects.
You think I killed Marcus.
Right now, I don't know what to think.
[Sighs.]
An old friend of mine from MI6, Bryce Roberts, hired me and Marcus to do some P.
I.
work, to install some spy software on the VP of Manchester Energy's computer.
At least, that's what I thought we were doing.
Right in the middle of it all, in walked Ned and Karla, so I finished my part of the job, and I took off.
Marcus stayed to watch Ned and Karla go at it.
[Scoffs.]
Must have been part of their plan.
Wait a minute.
Marcus and Karla were partners? Must have been.
Although what they were really after and why she killed him, I have no bloody idea.
Okay.
Tell me about Bryce.
He was my team leader back when I freelanced for MI6.
Were you guys close? Yeah, for a while.
Then everything went to hell in an op, and I cut all ties with MI6.
Then, a few months ago, he retired from Her Majesty's service, started a freelance security company here in New York.
He got back in touch.
He's a good man.
So, why did he involve you? Yeah, I'd like to ask him that myself.
Any idea where we can find him? Are you sure Bryce's ex-wife still lives here? Hayley: I hope so.
He would have come to say goodbye before he went Code 44.
There's no cars here.
It doesn't look like anybody's [Man screams.]
Police! Esposito: How bad? Ryan: We got a body here.
- All right.
- Bryce? Bryce? Stabbed in the back, just like Marcus.
Right between the T4 and T5 vertebrae.
I don't believe it's coincidence.
I'm sorry about your friend.
Thanks.
You know, you can't blame yourself for this.
Bryce lied.
He chose to trick you.
Bryce was leveraged, compromised.
Yeah, but by whom? [Sighs.]
Hey, what are they getting you mixed up in? Yo, some unis are canvassing the neighborhood, but there's no trace of our suspect.
It had to be Karla.
Ryan: Could be she's cleaning up loose ends.
I mean, her partners are dead.
All Karla has to do now is disappear.
Why would she [Cellphone dings.]
break into Manchester Energy building in the first place? What were they after? And why do they need Hayley to be a part of it? Wait.
Hang on.
$10 million was just wired into my bank account from Manchester Energy.
What the hell is going on? I think I know why they needed you, Hayley.
Why? You're the patsy.
Reporter: We are getting confirmation that the massive blackout that has hit London is due to a cyber attack on Manchester Energy International, an electric and gas company with offices in Europe and in the United States.
The money in your account is the noose that hangs the cyber attack around your neck.
It may take weeks before they're able to restore full power to the city's grid.
[Sighs.]
I just assumed that Bryce was telling the truth.
How could I have been so stupid?! It was a thumb drive Bryce gave you, wasn't it? [Sighing.]
Oh, God.
I must have had a virus of some sort.
So, I spoke with the FBI, and they are considering this an act of terror.
How bad's the damage? Uh, it's gonna be a few days before the power's back up in London, maybe more.
Fantastic.
So I have unwittingly plunged my hometown back into the 16th century.
Castle: Oh, that might not be all that bad.
I mean, Hamlet was written in the 16th century.
I'm not helping.
Kate, do they know about my involvement yet? They traced the money to your account, and there is a warrant out for your arrest.
[Knock on door.]
Ryan: Excuse me.
Hayley, uh, is this Karla? Oh, yes, with our old friend Ned.
Well, the security camera across the street caught them leaving this bar on their way to the office.
The bartender remembers Karla, but he'd never seen her before that night, and unfortunately, Ned paid the bill.
- So we have no way to track her.
- Well, we're scrubbing Bryce and Marcus' computers and cellphones.
One of them had to have been in contact with her.
Don't worry.
We'll find her.
Look, we'll keep you in the loop, but a police precinct is probably the worst place to hide from the feds.
Castle: Well, we can go back to the P.
I.
office.
You can stay out of sight in the panic room until we clear your name.
No.
I can't let you guys cover for me.
No, we got your back.
Just go.
So, how bad is it? She's gonna need a miracle to stay out of jail.
I wish I remembered something about her A tattoo, a scar.
[Groans.]
You want a laugh? The only thing I recall about this woman is poor Ned fumbling around with her fancy corset.
Tell me more.
Was it cotton or lace? Ew.
Perv much? I'm serious.
Okay, it was lace with black leather.
Why? Narrows it down.
Padded? No.
Back or front clasps? Back clasps and buckles, and it had a metal ring in the front with snaps.
Were there crystal studs across the décolletage? Actually, yes.
La Seductrice.
Give me a moment to pull up the 2016 Mon Cheri collection.
[Keyboard clacks.]
That's it.
That's the one.
And voilà.
My work here is done.
Hey, Dad, uh, should I even ask? - "Nikki Heat" research.
- Yeah.
Well, there's only one La Seductrice in New York.
I will e-mail this to Espo and Ryan, see if they can track her down by her unmentionables.
[Computer dings.]
[Sighing.]
Oh, damn it.
I recognize him.
He's MI6.
I guess the FBI aren't the only ones investigating.
- You guys get in the panic room.
- Yeah.
Hello, Mr.
Castle.
The name's Stephen Mallory.
Do you mean Agent Mallory, MI6? Well, I wonder how you knew that.
Lucky guess.
Do come in.
Lovely decor.
Retro but chic.
Thank you.
But I assume Her Majesty's Secret Service isn't interested in my interior designer.
No.
However, your business partner interests us greatly.
Ah, well, I haven't seen Hayley since this morning.
Mr.
Castle, I must find Ms.
Shipton before it's too late, before I can no longer help her.
Well, Hayley left MI6 for a reason.
I doubt she needs your kind of help, Agent Mallory.
You may think you know Ms.
Shipton, but, in fact, you do not.
You could have fooled me.
I'm sure she has.
Tell me, did Ms.
Shipton ever tell you why she left MI6? Something about holiday bonuses and bad fish and chips.
Charming.
Look, despite what you think, I can assure you Hayley was framed.
And I can assure you she is the main conspirator in everything that happened today.
How can you be so sure about that? I have access to her confidential dossiers, Mr.
Castle.
You must trust me Ms.
Shipton is intimately involved in the planning and the execution of today's events.
We have proof.
Ignore him.
Everything he's saying is classic counterintelligence.
Ms.
Shipton was arguably one of the most ruthless, cold-hearted operatives in the history of MI6.
Mm.
Truth be told, on her final mission, to save her own skin, she let her own partner die.
I think that would be an indication of exactly the type of person you're dealing with.
She might very well do the same to you or to your daughter.
Well, as I said, Agent Mallory, as far as where Hayley is, I haven't got a clue.
[Chuckles.]
Well, if you ever get one, it would be in your best interest to call.
What was all that about MI6 having proof you're behind this? It's all lies.
Even what he said about your old partner? That was a lie, too? You let your partner die.
No.
Wesley died because because It's complicated.
Look, don't let Mallory get into your head.
You know you can trust me.
[Beeping.]
Hey.
Your tip about the corset paid off.
You found Karla? We reached out to that lingerie shop and I.
D.
'd our blonde.
Her real name is Beth Wynne.
She's a longtime grifter who's worked a lot of scams.
Interesting.
And get this One of her aliases just checked into a motel at 153rd by JFK.
We're headed there right now.
Esposito: We'll let you know if we find her.
Castle: All right.
[Click.]
Where are you going? I thought you were staying out of sight.
She killed my friend.
I'm going to be there for the arrest.
Not alone you're not.
Hayley, you're not supposed to be here.
And yet here I am.
Castle, you didn't stop her? Like I could stop her even if I wanted to.
[Door closes.]
Hey, hey, hey, guys.
That's her.
Esposito: Beth Wynne, NYPD.
Hey! Come here! Hey! Oh! Beth Wynne [Handcuffs click.]
You're under arrest for the murders of Marcus Janek and Bryce Roberts.
[Groans.]
No, no, no.
You are not hanging this on me.
I didn't kill anyone.
When I left Manchester Energy, Marcus was alive.
I came straight back here.
You can check the motel surveillance cameras.
And what about Bryce? I didn't kill him.
I was here.
I haven't even left this place till now.
Okay, then what really happened last night? What were you doing there when Hayley and Marcus were breaking in? I was the bait for that idiot Ned.
The computer system required two separate security keys.
You can't just hack in and upload a worm.
It had to be embedded while a secure portal was open.
So you made sure that Ned logged in.
And after that, the worm that Hayley unintentionally planted was allowed to wreak havoc on London's power grid.
Castle: Wait a minute.
Marcus was a run-of-the-mill cat burglar at best.
How would he come up with such an elaborate plan? He was just following orders.
From who? [Sighs.]
A man named Edgar Patton.
- You never met this man? - No.
Marcus was the point man, and he brought me onto this job.
Marcus say anything about him? Come on, you got to know something.
He's a smoker, I guess.
The night before the job, Marcus met Edgar at some fancy club to get the worm program.
When Marcus came back, both him and his laptop stunk like cigars, - and that's all I know.
- Where's Marcus' laptop now? Okay, if there's still a copy of the worm program on here, I might be able to find out who created it.
Hold on.
To attack London's power grid, you didn't even need Hayley or Bryce.
No.
But that's the way Edgar told Marcus it had to be.
I was chosen specifically.
Yeah.
And your buddy Bryce was only leveraged to do this job to get to you.
Our Karla's telling the truth.
Motel security cameras prove that she was there during Bryce's murder.
Lanie says that both Bryce and Marcus were stabbed by the same killer, so it looks like this Edgar guy is our new number-one suspect.
Any leads on the cigar smoker? Not yet.
We're gonna canvass smoking clubs throughout the city.
Yeah.
If we're lucky, somebody saw Marcus and Edgar meeting.
And what about that laptop? Was Hayley able to identify who created that worm program? Not yet.
[Keyboard clacking.]
[Beeping.]
Hayley: Damn it.
You've been working that thing for hours.
You need to take a break.
Uh, this Edgar fellow has a serious hurt-on for me, and he killed Bryce because of it.
I'll take a break when that bastard is dead.
[Computer beeping.]
Hello.
I'm in.
I have unlocked the security for the worm.
What is it? I recognize this code.
You do? How? Because I helped design it a long, long time ago.
W-What are you talking about? [Sighs.]
Damn it.
His laptop is rubbish.
I'm gonna need something with more horsepower in order to get to the bottom of this.
I'll get your laptop from the back.
You're a dear.
Thank you.
Now, if it's partially your code, then that should help narrow down who the killer is, right? Hayley? Hayley Hayley.
Ryan: Hey, guys, we got something.
Yeah.
One of those cigar clubs paid off.
Manager recognized Marcus' photo.
Did he see who Marcus was with? He said Marcus came in alone, and then he met with a guy in a brown leather jacket for about 15 minutes.
Did he get a good look at him? No, but the club security cam did.
Look brown leather jacket.
Got to be Edgar.
This guy looks familiar.
Hold on.
[Cellphone rings.]
Oh.
[Cellphone beeps.]
Hey, Alexis.
Dad, Hayley's gone.
Gone where? I don't know, but she ditched her cellphone.
I can't track her.
Hang on.
I'm putting you on speaker.
[Cellphone beeps.]
What was the last thing Hayley did before she disappeared? She discovered the computer worm was one she helped design years ago.
So Edgar used Hayley's own code to help frame her.
Why did she take off right when she was closing in? Because she knows who the killer is, and his name isn't Edgar.
I did some research on her dead MI6 partner, Wesley Connors, and I found this article from six years ago.
Wait a minute.
Wesley Connors is the man in the brown leather jacket.
I knew he looked familiar.
This article says he's been executed.
Alexis: Guys, when Hayley recognized the code, she looked like she'd just seen a ghost.
Castle: That's because she did.
Wesley Connors is still alive.
Hello? Wes.
Come on out.
It's me.
It worked, Hails.
Our plan worked.
Mallory: This is impossible.
Wesley Connors was caught and tried for espionage by the Iranians.
Our intelligence sources confirmed he was executed.
Well, obviously, they were duped.
Agent Mallory, this man perpetrated an attack on the London power grid and murdered two people, so it's time to play ball and tell us what you know.
What I'm about to tell you is highly classified and mustn't be repeated.
Are we clear? The worm that crashed the London power grid was a variation on one Hayley and Wesley designed six years ago.
It was used to knock out uranium-enriching centrifuges at the Natanz reactor in Iran.
Are you talking about Stuxnet? That computer virus set the Iranian nuclear program back by decades.
Stuxnet was supposedly created by the U.
S.
and Israel.
Disinformation, Captain, leaked by Her Majesty's government.
We wanted to hit the Iranians as much as everyone else, so we put our best two agents on it.
Hayley and Wesley.
Led by the recently deceased Bryce Roberts.
The op was a success.
However, their extraction point was compromised.
You said Hayley left Wesley to die.
Yes, well, I might have exaggerated a bit to make a point.
Truth is, Wesley was late to the rendezvous, and MI6 command made the call.
That's why Hayley left MI6.
She felt that they betrayed Wesley and condemned him to die.
Which brings us to our current dilemma.
Hayley and Wesley were thick as thieves, more loyal to each other than the service.
What are you saying? That it would appear they have teamed up once again to have their retribution.
- You're wrong.
- Am I, Mr.
Castle? Then, tell me, why has Hayley suddenly disappeared? Hayley: I don't understand.
They showed me proof you were dead.
No.
[Chuckles.]
I just wished I was.
What did they do to you? You know me.
I hate taking orders, so sometimes I refused.
But they never liked that.
Sometimes I wished they'd just finish me off.
There was times I tried to myself.
Wes, I'm sorry.
Don't be.
[Chuckles.]
See, you're the person that got me through it all.
You know how? Our plan.
It kept me going for six years, gave me the will to escape.
You keep saying "our plan.
" I Our bloody retirement plan.
Come on, Hails.
We used to talk all the time about how if we survived the Queen's service, we'd spend the rest of our days traveling the world in style.
You remember.
- $10 million each.
- Yeah.
Have you checked your bank account lately? Now you have it, and so do I.
You passed the test.
This was all a loyalty test? [Sighs.]
It was the only way to know.
I had to put a target on your back and make sure you wouldn't capitulate to the authorities, but you didn't.
Wesley, you murdered people.
You killed Bryce.
You're damn right I did! He and Her Majesty's Kingdom abandoned me, so they had to be punished.
Which is why you sent our worm to plunge London into darkness.
Oh, Wes, your captors drove you mad.
[Scoffs.]
How can you of all people say that to me? They had it coming.
They all did.
[Chuckles.]
Don't you see that? Wesley, I'm sorry.
I'm so, so sorry.
I have to take you in.
[Grunts.]
[Thud.]
Mallory: The rendezvous was predetermined.
Predetermined because Hayley and Wesley are in league with one another.
They are not working together.
[Scoffs.]
But they were at one point.
They were partners for years, working various black ops, maybe even one here in New York.
Beckett: Where they had an old safehouse or a staging area, someplace that they both knew about and could trust.
Okay, look, I can neither confirm nor deny MI6 has ever carried out any operations on U.
S.
soil.
Yeah, yeah, yeah.
Just tell us where it is.
[Groaning.]
I am shocked, Hayley.
You always used to kick my ass whenever we sparred back in the day.
So, what's the plan, Wesley? You gonna torture me like they did you? I would never do that to a friend.
I'll make it quick.
It was fun for a moment, though, wasn't it? The thought of us together again.
Do you know why we were such effective spies? Because we lived for the rush of the mission.
We were willing to die for that high.
And we were wrong.
After a lifetime of not letting anyone in, not even each other, I found people who tore down my walls.
I found a family, and they're wonderful.
[Laughs.]
So that's why I gave you such a kicking.
You've went and got soft on me, Hayley.
Wesley, don't do this.
Let me help you.
Help me? Love, you're not in a position to help yourself.
Listen, I was your friend once, arguably the only one you've ever had in your entire life.
Please let me be your friend once again.
[Sighs.]
The only friend I need is my $10 million and perhaps yours.
[Button clicks.]
[Groans.]
Wesley, Wesley [Whimpers.]
Wesley.
No, no.
[Screams.]
- No.
- Wesley Connors! - NYPD! Police! - Drop the knife now! Hey! [Groaning.]
Easy, easy.
- You okay? - Yeah.
There are secret exits only Wesley and I know about.
He's gonna double back and disappear.
They went that way.
We Damn it.
[Light clanking.]
Wesley.
[Gun clicks.]
Let me see your hands.
Drop the knife.
There's only one way this is going to end.
- Stop.
- Either you die or I die.
Wesley, don't make me do this.
Come on, Hails.
You killed me once already.
Don't.
I hated myself for leaving you.
Water under the bridge, darling.
And whatever happens in the next 10 seconds, no regrets.
For me, it's freedom or death.
Wesley, please.
Goodbye, Hayley.
Wesley, no! [Gunshot.]
Hayley.
You had no choice.
Esposito: Castle! Hayley? - Esposito: Hey.
- Beckett: Hey.
Nice job smoothing things over with the feds for Hayley.
Yeah, well, it didn't hurt that they were able to take credit for closing down a terrorism case, so Oh, let there be light.
That was fast.
[Chuckles.]
Well, since Hayley co-created the worm, she knew exactly how to help the U.
K.
authorities defeat it.
All's well that ends well.
Beckett: Speaking of endings, I can't think of a better way to end this day than by downing a few ice-cold ones with my lead detectives.
How about it? - Yeah.
- Okay.
- You're buying, right? - Yeah, exactly.
All right.
Captain's money.
Got that captain's money.
Castle: Well done.
I heard you were single malt fans.
From Her Majesty's special reserve.
She truly appreciates everyone's discretion in this matter.
W-Well, one does not want to insult the Queen.
I come bearing another gift An offer to return to service.
MI6's door is wide-open to you, Agent Shipton.
What do you say? [Chuckles.]
I say piss off, mate.
Well, if you ever change your mind, you know where to find us.
Fat chance, but thank the Queen.
[Chuckles.]
Mm-hmm.
[Door opens.]
[Door closes.]
Hey you all right? Sure.
I'm fine.
You don't have to mourn your friends alone, you know? You don't have to do anything alone ever again.
Hey.
[Door closes.]
A red rose for the lady.
Oh.
You know, the French would say "je suis désolé.
" In Spanish, "lo siento.
" In Latin, "mea culpa.
" - Okay, you're apologizing.
I get it.
- Yes.
Because I have been keeping something from you that your subconscious mind picked up on and caused you to have a dream that I betrayed you in some way.
Castle, I thought that we said we weren't gonna keep any more secrets.
I know, and I just I consider this more of a surprise than a secret.
But I should have known better than to try and surprise the world's greatest detective, after Batman.
W-What's behind the sheet? Kate you've been going through a lot of changes these past few years.
You gave up your place, you got married, and you became a captain.
But some of the things that you love have fallen by the wayside, including one thing that's been gathering dust in your father's garage.
- You didn't? - I did.
[Gasps.]
Oh! I had it completely restored.
I Yeah, sit on it.
[Laughs.]
What, I-I just [Gasps.]
I think you should take the bike on a cross-country trip.
It's something you've always wanted to do.
This is amazing.
I love this.
But I-I don't want to do this alone.
Why don't you get some lessons? I was hoping you'd say that, because I already got my license and I bought a bike.
It's at the garage to the office.
I love you.
I love you.
Yeah.
Mwah.
Does this mean that you won't be having any more bad dreams about me tonight? No, 'cause we're not sleeping tonight.
Unh-unh! Bring the helmet.
Safety first.

Previous EpisodeNext Episode