Castle s04e16 Episode Script

Linchpin

Previously on "Castle" Hands in the air.
Thomas Gage, you're under arrest.
Everything that you have on me, it's all going away.
I'm very interested in knowing how he got out of that holding cell on your watch.
Castle Rick Castle at a loss for words.
Sophia Turner.
Hello, Rick.
You're Clara strike from the Derrick Storm books? Welcome to the CIA.
Gage was our most effective asset.
He went rogue.
Pandora is the code name for Gage's mission.
Who is he? Dr.
Nelson Blakely.
There he is.
He was a legend at the agency.
His approach was to find a small event that could trigger a large event.
Blakely is the one who planned Pandora.
This is beyond a worst-case scenario.
Dr.
Blakely, what's going on? I found a linchpin that will bring about the end of our country as we know it.
- Dr.
Blakely- - They're here.
Wait! Wait! - Beckett! - Castle! This door won't open.
Yeah, mine won't either.
I think the crash bent the frame.
We need something to break the glass.
My gun.
Castle, I can't I can't find it.
I- I think it got knocked out when we got hit.
Help me look for it.
I'm stuck.
What do you mean, you're stuck? I mean, my belt is jammed.
And the seat won't move.
Okay, what about a knife? Do you have a knife? Yeah.
In the trunk.
Okay, look, we're running out of time.
I need you to see if you can find that gun, and we'll just shoot the belt off.
I can't feel it.
- Castle.
- Okay, hang on.
Hang on.
Just stay here.
I found it.
Castle? Castle! I guess the good thing about having your daughter at crime scenes is, she can bring you dry clothes.
Thanks.
And, um thanks.
You'd have done the same for me.
Yeah.
Probably.
I'm just glad you found my gun.
That whole, uh, sinking car thing- much cooler in movies than it is in real life.
And for the record, I prefer watching spy thrillers to being in them.
So tell me how can your victim look like Nelson Blakely when he supposedly died ten years ago? Yeah, I Yeah, weird, isn't it? Yeah.
Weird.
Fake deaths, car in the water- don't you think now is a good time to tell us what the hell is going on? Uh I'm sorry, Javi.
It's classified.
I was Special Forces.
I used to eat classified for breakfast.
And yet writer boy can know? Okay.
I'll be over there with harbor patrol trying to figure out how to get your unit out of the drink.
I'm glad you're okay.
Thank you.
Writer boy? - So you think our shooter was Gage? - Yeah.
I think he's getting rid of anyone that could expose his rogue operations.
Well, he's doing a pretty good job.
We still have no idea what Pandora is.
Well, we know that Blakely was afraid.
And we know that he was working on something that was big enough to threaten the future of this country.
We just don't know what the hell he was working on.
There's gotta be a clue somewhere in his life.
Maybe there's something on the body that will tell us.
No.
We checked.
There was nothing in his pockets.
But the way they were turned out makes me think someone went through and emptied them.
Gage.
Ryan, get some teams to search the building.
- What are we looking for? - I don't know.
But he brought us here for a reason.
Lanie, see what you can find on him- dental, scars, prints, tattoos, anything that might tell us- - He's dead.
- Yeah.
Look, I can explain.
Get in the car.
What the hell did you think you were doing? What you wanted, finding Blakely.
You cracked his code and you didn't even think to notify me? Look, in Castle's defense, it was a long shot, and he didn't want to waste your time if he was wrong.
- And we were bringing the guy in- - When he was killed in your custody.
What were you doing at the docks? - He asked us to take him there.
- Why? We don't know.
Well, did you learn anything? Yes.
He was hired to analyze the United States for vulnerabilities.
He said he found a weakness in our economy- an unexpected linchpin- that, if someone went after it, would start the dominos falling.
Falling toward what? The end of our country as we know it.
So what's our next move? There is no next move.
Not for you two.
It was a mistake bringing you into the loop.
You know, I really thought- I really thought you had changed.
But you know what? You are the same reckless, immature, self-centered jackass that you always were, and you've put this investigation at risk.
- Look, I'm sorry- - You're sorry? We are on the verge of the next 9/11 or worse.
This isn't one of your damn books, Rick.
This is real life, and when things go bad, you can't just rewrite the ending like you did with us.
Get them both out of here.
So you slept with her.
Yeah, yeah.
Yeah, I slept with her.
Have there been others? - Women? - Muses.
No.
Why? I just wanted to see how big the club was.
That's all.
Hey, guys.
What do you got? Okay, whoa, whoa, whoa, whoa.
First off, there is no club.
And second, we're off the case if you recall.
We're off their case.
I still have a murder to solve.
Where your chief suspect is smack-dab in the middle of a CIA operation.
I don't care what he's in the middle of.
Thomas Gage killed three people.
One of them was in my custody.
He locked us in a trunk and then he sent my cruiser to the bottom of the Hudson.
Gage is a trained covert operative.
There's no way you can catch him.
Yes, I can, if I figure out where he was going.
We find out what Blakely was working on, we find the linchpin.
We find the linchpin, we find Gage.
Anything on the warehouse? Yeah, right after you guys left, the feds showed up and shut us down.
But we did find something on your vic Nelson Blakely.
His prints came back as a Scott McGregor from Long Island City.
Problem is, McGregor seems to only exist on paper.
We can't find any trace of him in the real world.
Did you guys send units to the listed address? Yeah, and the family living there had never heard of him, and no one recognized his photo.
Well, someone must have known him.
Someone did.
He plays chess.
That's not a solo sport.
I thought you were off the case.
Well, you heard what Sophia said.
I'm a reckless, immature, self-centered jackass.
If you're stubborn enough to keep going, I'm stupid enough to go with you.
All right.
You guys canvass all of the chess parks in the city.
Let's see if we can dig up some of his opponents.
Beckett.
What? What do you mean, the body never arrived? They intercepted it at transport.
Apparently, they had a court order.
That's impossible.
How could they get a court order that fast? I don't know.
Maybe you should ask your girlfriend.
Girlfriend? Yes, okay.
We slept together.
It was a long time ago.
What's the big deal? There is no big deal.
Sleep with whoever you want.
The more the merrier.
I have those, uh, toxicology reports you wanted.
Oh, yes.
Just set 'em there, sweetie.
Thank you.
So enjoying your new internship? Well, I'm learning a lot.
Too much I think.
And I thought the dead bodies we're going to be the grossest part.
Funny.
Good night.
So who was Beckett talking about? None of your business.
Now go to bed.
The woman at the docks, who is she? Nobody.
Now go to bed.
I saw the way you looked at her.
She's not nobody.
Well, it doesn't matter who she is because I am never going to see her again.
Now go to bed.
You know, if you're going to keep secrets from me, I might start keeping secrets from you, too.
At your age, I'm thinking, that might be a good idea.
Sophia.
Hello, Rick.
Th-um how-what are you-how did- how did you get in here? I'm CIA.
So they're turning them into graphic novels now? Yeah.
Um the first one did well, so they're gonna do another.
So what do you think, she look like me? Uh what are you doing here? You're going after Gage, aren't you? No.
We're off the case, remember? Mm.
You used to be a better liar.
I know you've been looking into Blakely's aliases.
It's okay, Rick.
I don't mind.
In fact, I want you on this case.
- But- - I know what I said, but I also know what's at stake.
Bringing you and Beckett on board was not a popular decision, and after what happened with Blakely, I had to make a stand.
But I know what kind of asset you can be.
I know you'll just keep digging no matter what I say.
It's your nature.
You need to know how the story ends.
Like with her.
Does she know about this? Well, that's You always did like playing with dynamite.
Just be careful it doesn't blow up in your face.
She's different.
Is she? Or do you just think she is? I heard you hit the same dead end with Blakely as we did.
I thought you might be able to try this.
It's what Blakely was looking for at the pier.
We found it in a go bag with plane tickets, cash, and some fake IDs.
Account numbers? All from domestic banks.
And since Blakely was a US citizen- You're prohibited from looking into them.
But you guys aren't.
And those accounts may contain clues as to who hired him.
And assuming you still want to know how the story ends Just keep me in the loop this time.
And, Rick try not to get killed.
I'm still quite fond of you.
Where are the boys? They're canvassing chess parks, looking for anyone that knew Blakely.
And why aren't you with them? Because my car is at the bottom of the Hudson, and Gates won't issue me another one until I write up an incident report, which I can't do because this case is classified.
What? Nothing.
It's just, that's a perfect example of a linchpin.
This case might go unsolved all because you don't have access to a car.
Don't make me shoot you.
Well, if you shoot me, who's gonna help you follow this lead? Blakely's bank account information.
It's what he was going for on the pier.
If we can track his money- Where did you get that? Sophia.
She came to my place last night.
- Not like that.
- No, of course.
So then what happened to "reckless, immature, self-centered jackass"? She was posturing for her colleagues.
Beckett, it's a lead.
She wants us on the case.
What do you think this is about, huh? It smells like an intelligence op.
CIA, NSA, DHS? Same letters, different alphabet.
I had some buddies from the service volunteer for intelligence ops.
Yeah, how'd they like it? They all died.
Hey, guys.
Do you recognize this man? Matter of fact, I do.
Uh, he comes to the park two or three times a week.
Looks for games.
What do you know about him? He's a crazy chess player.
Makes some weird moves, like sacrificing his queen just to see what happens.
He always wins, though.
Do you know his name? Scott or something like that.
But i-if you want to know about this guy, you should talk to Jani.
Jani? Who's Jani? Another player.
Him and your guy been spending a lot of time together lately.
So Blakely had over $2 million in six accounts, and none of them under his real name.
Deposits were made by nonprofits, aid groups, environmental organizations.
So if those were his secret consulting accounts, it's possible that one of those payments was for operation Pandora.
Exactly.
These two.
Deposits of half a million dollars each.
This one was from three months ago, and this one was from a week ago.
His start and finish payments.
Mm-hmm.
Both from offshore accounts.
But they're closed.
It's a dead end.
Yo.
We may have a lead on Blakely.
Guy in the park said he's been spending time with this man- Janacek Spivey.
now an Economics professor at the School of International Affairs.
An Economics professor? You think it's related? Well, I don't know if this helps, but the guy is also an advisor to the IMF, the UN Economics Council, and the Congressional Finance Committee.
Yeah, that's him.
But he said his name was McGregor, not Blakely.
What do you know about him? Um, he was a hell of a chess player.
Uh, it seemed like he knew every move I was gonna make before I made it.
No, I mean personally.
He never really talked about his personal life.
Witnesses said you spent a lot of time talking.
What about? Economic theory.
When he found out what I did, he had a million questions.
What kind of questions? About world economic forces, historic socioeconomic models.
There were times it seemed like he knew more than I did.
He was quite the hobbyist.
Oh, he was more than just a hobbyist.
Did he focus on anything in specific? Uh, not that I remember.
Though he was very concerned with the US economy.
And he never mentioned any family or friends? - No.
- Anywhere he might have shopped? Anything that might indicate where he lived? No.
B-but I think he lived in Union Square.
And what makes you say that? After one of our walks, uh, I discovered I'd left my chess set in the park.
I saw him head into a building there.
Do you think you can identify that building for us? I think so.
I gotta borrow your car.
Yeah.
Uh, yeah, this is his place right here.
But he said his name was Finley, not Blakely or McGregor.
Thanks.
What are we looking for? Papers, computers, phone records, bills- anything that'll help us figure out what he was up to.
Beckett.
Think I found it.
What the hell? "Tax riots.
" "European economic collapse.
" "Iran invades Iraq!" "Syria moves on Israel.
" "US commits troops to Taiwan.
" "US commits troops to Middle East.
" "Russia moves on Eastern Europe.
" What kind of an outcome was this linchpin supposed to create? The end of our country as we know it.
A Third World War.
This can't be real.
No one can predict all of this.
Maybe not, but a bunch of people smarter than us think he can and would kill to cover it up.
I found an alarming vulnerability Over here.
A linchpin that was tied to the economy that would cause crisis and devastation beyond anything we'd ever seen.
The dominos would just never stop falling.
Who is she? I don't know, but this is it.
She's the linchpin.
The first domino to fall that leads to war.
I gave them the blueprint that will bring out the end of our country as we know it.
I have to call them.
They have to know.
Put the phone down.
- Gage? - Put the phone down now.
Now run.
- What? - Run! I thought you were the bad guy.
If I were the bad guy, you'd be dead by now.
This way.
No, my car is out front.
They're watching your car.
You go that way, and you'll die.
Who's out there? Who are they? You can have answers or you can live.
Your choice.
Stay down! We need to call our CIA contact.
We need to tell them what's going on.
No calls.
Where are we? Someplace safe, but we don't have much time, all right? I've been on the grid, I've heard the chatter.
Whatever this is, it's going down tomorrow.
Now you got to Blakely's before me.
Who's the target? Why did you kill Blakely and McGrath? I didn't.
Come on.
You really want me to take that gun away from you again? - We don't have the time.
- Make time.
Look, as an asset, you have to develop certain survival skills, all right? Chief of which is the ability to know something's wrong without knowing why.
It's always something small- a static pop on your safe house phone, a slight delay in authorization using your credit cards, or the almost imperceptible pauses in conversations with your handler.
Something's wrong, and if you don't figure out what, you're not gonna survive the week.
Now someone is trying to send this world spiraling towards war, and they want me to take the fall, but neither of those things are gonna happen.
Now I need you to tell me what the name of the target is.
Look, let me call my CIA contact.
- She can help us.
- No.
Everything indicates that Pandora's being funded by military industrial concerns linked with eastern Europe.
They can't pull off this operation, all right, not without help from the inside.
Detective, don't you get it? My own people are setting me up.
And they're not gonna stop until I'm dead, because I'm the diversion.
Okay, if everyone's trying to stop me, then no one- Then no one's trying to stop Pandora.
No one but me.
Now I'm gonna ask you one last time, who's the target? Hello, Thomas.
It's the oldest intelligence con job in the book- create a crisis so you can ride in just in time to save the day.
Gage was playing you.
He wanted you to think that he was the good guy.
He needed your trust.
Yeah, but then why did he ask us who the linchpin was? Shouldn't he have known? He was protecting his op.
He was ascertaining how much we knew before he killed you.
Well, if you're right and the attack on us was staged, then he can't be working alone.
Gage must have a partner.
Which means it's not over.
Fire crews were unable to contain the blaze in Blakely's apartment.
All of his research is gone.
I want you to run this through every facial rec database we have.
I want to know who she is and I want to know how the hell a 10-year-old girl could be the first domino in the march toward war.
Where's Gage? In the tank.
You know that guy you threw out the window- Gary Harper? He was a friend.
Then you shouldn't have sent him for me.
You know, we've met before.
In Berlin, the Mannheim business.
You were there at the drop-off with the Spaniard.
You were good.
So who are you working for now? Who's the girl? Who's the linchpin? Who put me in the cold? Who set me up? So you think there's someone inside the CIA- a mole, a traitor? Is that what you think? You know, I think you could be right.
And I think it's you.
You're making a mistake.
No, you and your partner are making a mistake.
I don't have a partner.
The guy out there, the one that killed McGrath and Blakely and drove your friends into the water, the one carrying out operation Pandora, he's not with me.
I saw him at the docks, the way he moved.
He's with you.
He's CIA.
Are you sure he's lying? He's not expressing any of the physiological traits.
He's trained to lie without betraying himself.
He wants to divide us, make us suspicious of each other.
Trust me.
There's no mole but him.
What if you're wrong? What if he's telling the truth? That is immaterial.
Right now, there is someone else out there, who is preparing to go through with Pandora, and that girl is the key.
We need to find her.
Still negative on all databases.
She's a foreign national.
She might not be in any of ours.
What about her school uniform? Can you identify her through that? We tried.
There's not enough of the crest visible to identify it.
Do you really buy this, that killing a little girl could lead to the collapse of the United States? I mean, it just seems crazy.
Yeah, well, so did Blakely's first linchpin.
They asked him to develop a nonnuclear military strategy that would bring down the Soviet Union.
Turns out, all we had to do was outspend them.
Need to take another run at Gage.
Looks like he's all we've got.
Put us on lockdown.
No one leaves or enters the facility.
Contact Burns.
He was shot point-blank.
How is it that nobody heard the shot? The room is soundproof.
The real question is how come nobody saw? Someone hacked the video steam.
How is that possible? You're the CIA.
You have the most secure computers in the world.
It's possible because Gage was right.
There's a mole in the CIA, and he's in this unit.
Facility's locked down.
All personnel have been accounted for.
How many people had access to that room? Ma'am, I've isolated the subroutine used to doctor the video.
It was embedded in a software worm to escape detection.
Then there's no way to tell where it came from.
I may be able to use a reductive logarithm to isolate the pathway it took through the system.
It might tell us where it was loaded.
- You can do that? - I can try.
Do it.
Wow.
I got no idea what they're talking about, but this is very exciting.
There it is.
Starting the trace.
Got it.
That's the terminal address where the virus was uploaded.
Whose is it? Agent Trahn's.
What? No.
- There's been a mistake.
- Get your hands where I can see them.
Get down on the ground now! Do it now! Down now! Wait! It's a decoy.
The hacker piggybacked the IP.
It's not Trahn.
Then who is it? Whoever uploaded it used Trahn's terminal IP to hide their ID.
They're good, but I'm better.
I've isolated the user's pass code.
I'm de-encrypting now.
Run a personnel match.
Martin? No, Soph.
I'm loyal.
You know I'm loyal.
Then put the gun down.
Put it down! Okay.
All right.
Okay.
Martin! You shoot, she dies.
Everyone, back up now.
- Martin, don't.
Don't do it.
- Back up now! Back-back up now! Hit it.
Martin, don't.
Martin, don't! Martin.
Put the gun down, Martin.
Thanks, but I'd rather live.
Shut the elevator down.
I'm in.
Standby.
I'm bringing it back down.
There's no way you could've known.
No? When we first got wind of Pandora, Danberg was the one who found all the connections.
He was the one who traced it to Gage, all so we wouldn't get too close to him.
He even tried to convince me to get rid of you two.
And worst of all, he may not be working alone.
The implications of Pandora are huge.
I don't understand how one of our own would actually want to plunge the country or the world into war.
Money, ideology- none of it makes any sense.
Well, the motives don't matter.
All that matters is stopping Pandora.
Gage said he picked up chatter.
He said it's going down tomorrow.
We've heard the same thing, which means, we don't have any time.
We have to find her.
Well, there's gotta be something that we missed, some detail that'll help us figure out who she is.
We've run it through every database we have.
We have looked through everything.
Not everything.
You guys maintain a topographical survey of the earth, right? Yeah.
Why? So don't search for the girl.
Run the mountains.
If we know where she's from, we can narrow down our search.
You are a genius.
How long will this take? It's a big world.
We've pulled anything arid and everything above and below 60 degrees latitude, but they're estimating, it could take 32 hours.
Sounds like a long night.
I'll get some coffees.
He was always thoughtful.
You like him.
I did.
Once.
S- so what happened? If you don't mind my asking.
Well, um, well, you ever Meet someone and-and have that intense attraction right away.
You know, that tension? Well, we fought it for months, and then and then we just couldn't stand it anymore.
But afterward, it-it was like that tension was all we had really, and without it, all we were left with was that well, those things that drove us crazy about each other.
I mean, you know how he can be.
Yeah.
Yeah, I do.
Sometimes I wish we had never slept together.
Had kept that longing.
Even your coffee mugs say "CIA.
" That is so cool.
Well, we save the world, maybe I'll let you keep one.
Incentive.
Uh, the topography matches terrain in the Chinese province of Zhejiang, just outside the City of Hangzhou.
That's near Shanghai.
Pull up all school uniform insignias from that region.
Wait.
Right there on the top right corner.
They're the same color.
Shanghai #12 Girls' School.
Do they have a web site? It's password protected.
Picking the lock now.
Hack into their photo archives and run facial rec.
Bring up the captions and compare.
Got her.
Mia Ganghong.
What do we know about her? Uh, not much.
Just that she's the daughter of Xiang and Biyu Ganghong.
Xiang Ganghong? Who's Xiang Ganghong? He's a Chinese businessman with close ties to the finance minister and members of the ruling party.
Well, why is his daughter targeted? Xiang is a kingmaker.
He's extremely influential in shaping his government's economic policy.
He made his fortune selling Chinese military hardware, sometimes to our enemies, but we left him alone because he was supportive of China's purchase of US debt.
Now if someone were to take out Xiang, not that much would change.
But if his daughter were killed in a botched assassination attempt, and the Chinese were able to trace it back to the US government? The trail that led to Gage.
It's conceivable that Xiang could use his considerable influence to single handedly end China's purchase of the US debt.
This country runs on deficit spending.
If-if we can't borrow money- We couldn't meet our obligations, the government would shut down.
Austerity measures would be imposed.
We'd lose our ability to deploy our military around the world.
And then with the US neutralized, our enemies would be able to explore their interests unchecked.
That's right.
And there would be an explosion of regional conflicts, any one of which could send us toward global war.
A war that we might not even be able to win.
One domino knocked down, the entire world changes.
We've located Xiang.
He and a Chinese delegation just landed at JFK an hour ago.
He's here? For a UN Trade Conference at the McKinley building.
They're on their way there now.
And, ma'am, his daughter's with him.
If we call it in, I can get a protective detail waiting.
You think your cops are gonna be able to stop CIA-trained operatives? They'd just end up dead.
Besides, if word of this gets out, it could spark an international incident of epic proportions.
We need to clean up the mess, not make one.
We and what army? You said we couldn't trust the others because they could be working with Danberg.
This is not the only CIA station in New York.
I've got another field team on its way.
You seal it up until you hear from me.
No calls going in or out.
I'm not taking any chances.
Yes, ma'am.
Agent Corrigan, detective Beckett and Mr.
Castle.
Where's the delegation? Five minutes away.
We in position? We have teams in the lobby and spotters across the street.
What about Danberg? A guard ID'ed him as having entered the building We have crews in place authorized to take him out, but we still haven't identified his partner.
Whatever happens, keep the girl alive.
Do you understand me? Yes, ma'am.
Where are we going? This way.
What are we doing down here? Shouldn't we be headed for the lobby? Castle.
Sorry.
What are you doing? Danberg wasn't the mole, was he? You are.
Go kill the girl.
I'll take care of these two.
It was you this whole time? I'm afraid so.
Then why bring us here? Why not just leave us at the facility? Because you just don't stop.
You need to know the story, the whole story.
And if something doesn't add up, you just don't let go.
Why do you think I brought you inside? I was protecting the op.
Like you were trying to protect the operation when you killed Blakely and McGrath? You set up Gage.
Well, for the linchpin to work, the Chinese have to blame the US government.
The operation has to trace back to the CIA.
And when you needed to cover your tracks, you killed him.
So then you needed someone else.
You needed Danberg.
Sophia World War III, why? Let's just say, there are certain parties who will pay anything to reshape the world.
I don't buy it.
The Sophia I know wouldn't sell out her country, not for money, not for anything.
Well, that's one thing you got wrong, Rick.
On your knees right now.
Both of you.
You're never gonna get away with this.
Of course I will.
I'll just tell them how we all tried to stop it and couldn't, and the two of you were killed in the process, by Danberg, of course.
Don't worry.
I'll make it sound heroic.
Your father will be very proud.
My father? Well, you don't think you gained special access to the CIA back then because of your charm.
You really don't know, do you? I guess you never will.
No! Come on.
It's just us, and we're out of time.
Whoa! Are you okay? He's fine.
He's good.
He's okay.
- Sir, are you all right? - You all right? - This way.
- Yeah, maybe we should go outside.
So what do you think this was all about? They didn't tell you? What? Th- Huh.
They-they told you? Once she turned me out, it didn't take long to put the pieces together.
But all I could do was watch and wait for her to make her move.
Hard to believe she was a traitor.
It was all an act.
Langley thinks she may have been a former KGB sleeper set adrift when the Soviet Union broke up.
Stayed with the company because she had nowhere else to go.
Till a better offer came along.
Did you ever find out who she was working for, who was behind Pandora? No, and even if I did, I couldn't tell you.
Agent Danberg Sophia said something, something about my father being in the CIA.
Would you know anything about that? I'm afraid I don't.
Sorry.
Oh, uh, detective Beckett.
Here.
I had our guys, uh, take care of your car.
You pulled my car out of the river? Yep.
I think you will find it better than new.
Thank you.
It's the least that we could do.
Take care.
You think she was telling the truth about my father? I mean, that would explain why he completely disappeared.
I I think that Sophia told a lot of lies.
Must be tough, finding out that she's a traitor, especially after you based Clara Strike on her and all.
Hmm.
Well Clara started off as Sophia, but she ended up being more like you, you know- smart, fierce, kind.
I think that's one of the reasons I was drawn to you as a muse.
You think Dr.
Blakely was right about the linchpin? Do you think we actually saved the world? I think that we saved a little girl's life, and that's enough for me.

Previous EpisodeNext Episode