"Richwood:" "You know, after six months," "Mars is starting to remind me of Kauai, except without the water or the hot girls in bikinis or the air." "What I wouldn't give for a hot girl." "Hell, after all this time, I'd even take an ugly one, assuming she came with a paper bag." "Kim:" "Oh, real classy, Richwood." "Just repair the short, and make sure the four-b coil isn't fried." "We can't afford to have the power grid compromised." "Aye-aye, captain." "Oh, boy." "Bad news." "It's charred." "I may have to replace the power coupling and [Distorted] reboot a-level systems..." "[Static]" "Didn't read that, Richwood." "Interference." "Come again." "Watch out!" "Aaaaah!" "Tom?" "Tom!" "[Zapping]" "[Laughs]" "Oh!" " [Chuckles] Yes!" " I can't wait to take off my... shoes." "Dad." "Beckett." "So much for a quiet evening at home." "I thought you guys were working late tonight." "Slow murder day." "We got off early." "You're playing laser tag?" "Without me?" "Is that my gear?" "Oh, dad, Beckett, this is David." "He bet me I couldn't beat him." "[Door closes] She trounced you, didn't she?" " Yeah." " Martha:" "Oh, my, what is going on down here?" "[Laughs]" "Far too much, apparently." "Uh, are those my pajamas?" "Uh..." "Oh, oh, oh, oh." "[Cellphone chimes]" "I'm so sorry, Ben." "Um, family, Benjamin." "Ben, meet my family." "Castle, we got a murder." "Uh, to solve, not to commit." "Bye." "But those were my softest pajamas, and now I'm gonna have to burn them." "Is it just me, or is the loft getting awfully small these days?" "Well, four adults together in one space... we're bound to step on each other's toes." "Yeah, well, there's a lot more toes than usual tonight." "Hey, guys." "Glad you're here." "You're gonna want to see this, especially you, Castle." "What is this place?" "It's mission control." "And that's Mars." "And there's your body." "Our victim is on Mars?" "The "secret manned mission to Mars" rumors were true." "I knew it!" "You know, this might be a little out of our jurisdiction." "Esposito:" "It's not Mars." "This is operations director Ed Redley." " This is Detectives Beckett and Ryan." " Castle." "Redley:" "Uh, what you're seeing is a live feed from a simulation we're conducting in advance of a real Mars mission." "Who's "we"?" "NASA?" "It's the Mars 2018 project." "We're privately funded." "Yes, by Viggo Jansen, the Internet billionaire." "He promised to put humans on Mars by 2018." "Held a competition and everything." "I signed up for the program, but I didn't get in." "Wait, you signed up to go to Mars?" " When?" " A couple years ago." "Where was I?" "We were fighting." "The victim, pilot Tom Richwood, was supposedly alone on the, uh, planet's surface conducting repairs." "We were in a communication blackout, part of simulating planetary conditions, when the mission commander broke protocol to tell us they found Tom dead." "They don't think it was an accident." "Well, I'd like to see the body." "So where is the simulation?" "A couple of floors below us, and that's easier said than done." "In order to mimic conditions on Mars as well as discourage any cheating, the simulation is filled with noxious gas." "Redley:" "Right, it won't kill you, but it will induce severe nausea and a rash." "It would take several days to vent the sim to make the air breathable, so if you want to go in, you're gonna need to wear space suits." "Best case ever!" "[Chuckles] This way?" "What can you tell us about the victim?" "Well, Tom Richwood was the mission pilot." "Former Navy top gun, did a tour with NASA." "What about family?" "None, which made him the perfect candidate for the mission." "He beat out some of the smartest, most competitive candidates in the world to be a part of the first manned team to Mars." " They all did." " Who else is inside?" "Our four remaining astronauts." "The team's medical specialist, Dr. Haroun, is waiting for you." "[Beep]" "So, has anyone been in or out of the simulation recently?" "No." "It's a sealed nine-month experiment." "No one's been in or out since the astronauts entered six months ago." "Which means one of them probably did it." "Yeah. [Chuckles]" "There's only three suits." "Um, that's okay." "We don't all need to go in." "I'll go take statements back at the facility." "Seriously?" "You don't want to go to Mars?" ""A," it's actually not Mars, and "b," I'm happy here on earth, but have fun, Castle." "Castle:" "Trust me, I will." "[Richard Strauss' "Also sprach Zarathustra" plays]" "Are you done?" "No." "Finally made it to Mars." "I didn't even have to go to astronaut training." "So, you really signed up to go to Mars, huh?" "Wouldn't that be cool?" "I mean, not so much for you, but for me." "Uh-huh." "Detectives?" "I'm Dr. Rusham Haroun, the bioscience officer." "He's over here." "And nobody saw this happen?" "No, we were all in the module." "We heard him scream." "He must have fallen into the coupling coil, because right then the power went out." "By the time Angela and I got out here, he was gone." "It took us another 10 minutes to get the power restored." "It looks like a stab wound." "Delivered with a lot of force." " Well, where's the murder weapon?" " Haroun:" "There wasn't one." "But one of his tools, his screwdriver, is missing." "It looks like this." "It's pretty rocky around here." "No footprints." "And, since the killer was probably wearing a suit, there's not gonna be any DNA." "Let's get his body to the morgue and find out." "And get csu down here." "I want this place searched." "If no one's been in or out, then that murder weapon is still inside here." "Dr. Haroun, I'd like to speak to the other astronauts, please." "They're inside." "Follow me." "[Castle sighs]" "One small murder for man, one giant mystery for mankind." "Even when you whisper, everyone can hear you." "Richwood:" "I may need to replace the power coupling and [Distorted] reboot..." "[Static]" "Kim:" "Didn't read that, Richwood." "Interference." "Come again." "Richwood:" "Watch out!" "Aaaaah!" "You know the rest. [Sighs]" "And where were each one of you when this happened?" "Angela, rusham, and I were here, in the command module." "Mikhail was over in engineering." "And is there access to the outside from engineering?" "[Russian accent] There is emergency hatch, but if I had gone through it, the alarm would have sounded." "Plus, as part of the program, we're all closely monitored." "In case we lose consciousness or there's a suit malfunction on an E.V.A., we all have trackers under our skin." "And M.I.R.A. keeps a record of all our movements." "Who's M.I.R.A.?" "That's what we call the mission computer." "Well, I'd like to take a look at those records." "M.I.R.A.:" "I will be happy to provide you with any records you require," "Detective Beckett." " It talks?" " Yeah." "We think of her as the sixth member of the crew." "Isn't that a little "2001"?" "She is programmed to learn and adapt, but she's more Siri than H.A.L." "Ask her where you are." "M.I.R.A., where are we?" "You are aboard the vessel tensing norgay in the northern lowlands of Mars." "She actually thinks she's on Mars." "Regardless, I'm gonna need to ask all of you to join me at the precinct so I can interview you properly." "That... could be a problem." "Redley:" "I'm sorry, detective." "I can't let you remove the astronauts." "I don't have that kind of authority." " Well, then, who does?" " Viggo:" "That would be me." "And my astronauts aren't going anywhere." "That's Viggo Jansen." "The Viggo Jansen." "Detective, if we shut down now, we will lose months of priceless data." "Millions of dollars' worth of experiments will be compromised." "We'll lose half a year, and we don't have that time." "Mr. Jansen, it's not a request." "A man has been murdered." "I need to conduct an investigation." "And I will do everything in my power to help you..." "Short of shutting down my sim." "Mars is our generation's space race, and my team's gonna be first... not the Chinese or Mars one or that puffed-up movie producer, Sir Ian Rasher." "I can get a court order to compel you." "And with my legal team, it'll take you months." "Or we can work together." "I give you all the access you need, and my simulation keeps running." "Fine." "For now." "But if I find out any of those people are responsible, you won't stop me from removing them." "Yeah." "Well, according to this tracking data, none of them seem responsible." "They were all exactly where they said they were at Tom's approximate time of death." "It even confirms that the mission's rover was still parked at the habitat at the time of the incident." "Well, there goes my "rise of the machines" theory." "Okay, so if all the people inside are accounted for, then our killer must have come from outside of the simulation." "We would know." "The airlock door is the only way in or out." "It's alarmed and monitored." "Uh, excuse me." "Detective Beckett, there's a message coming in for you from the habitat." "I can put it on the monitor if you like." "Yeah, please." "Hey, Espo, what do you got?" "I was just going through our victim's video diaries." "There's something you need to see." "Six months in, and I know part of this mission is a psych experiment." "Maybe the close quarters are starting to get to me, but I think I'm starting to see things." "When I was out there today, I could've sworn I saw someone, and it's not the first time." "I know it's not possible, but I don't think we're alone." "S07E16 The Wrong Stuff" "Esposito:" "Hang tight." "I may have more questions." "[Keyboard clacking]" "Beckett:" "Go ahead, Espo." "Hey." "So, I just finished talking to the other astronauts." "None of them seem to have any idea what Tom was talking about." "All right." "Thanks, Espo." "Csu just finished their initial sweep." "There's no one else in that simulation." "It's possible Tom was seeing things." "All our tests show that being locked in a confined space with others can play tricks on your mind." "Only, delusions don't kill." "And, if what Tom said was true, then whoever killed him might have been able to get in and out undetected." "I told you, detective, given our security, that's impossible." "Redley:" "Sir." "Maybe not." "At Detective Ryan's request," "I ran a check on all our security systems." "Everything looked normal until I got into the deep code." "See that?" " Oh, God." " What is it?" "Our security system's been hacked... key cards, alarm codes." "Meaning someone could've broken into the simulation." "Based on our back-up files, these changes were made two days ago, sometime between 11:10 and 11:14 at night." "Digital tracing indicates we were breached from the outside." "Someone broke through our firewall." "Can you tell who?" "We log every I.P. address that connects to the mainframe." "I'm running a trace now for that time window." "There." "Third one down." "I don't recognize that one." "All right, we should be able to trace it." "Don't bother." "I just did." "It's coming from a residential wi-fi registered to a..." "You got to be kidding me." "Who is it?" "Clint Granger, hothead pilot." "He was one of our applicants until he was kicked out of the program." "Why'd he get kicked out?" "He accused Tom of sabotaging him during candidate testing and claimed it cost him the pilot spot." "So he tried to run Tom over in the parking lot." "And when was this?" "Seven months ago." "But he did say he'd be back to finish the job." "Clint:" "Yeah, I was pissed." "I'm still pissed." "He slipped something into my drink before the final round." "Slowed my reaction time." "So you tried to run him over with your car?" "It should have been me on that mission, not him." "He stole my spot in history." "And you ask me, he got what he deserved." "But I did not kill him." "And yet we traced that cyber attack to your apartment." "I am a pilot, not a computer geek." "I couldn't rewrite that code if the mission depended on it." "You could've hired someone." "Yeah, but I didn't." "Look, when Tom was getting himself murdered," "I was at dinner with a friend in Connecticut." "And when that hack took place from my wi-fi," "I wasn't even in the country." "Someone's setting me up!" "Granger's alibi checks out." "He was at dinner with a friend when Tom Richwood was killed." "What about the night the hack took place?" "Granger was visiting his brother in Nova Scotia." "It wasn't him." "Mars, Nova Scotia... this guy really loves barren landscapes." "Come on, Ryan, you're telling me you have no desire to go to Mars?" "I prefer my oxygen without a can." "Where's your sense of adventure?" "Of exploration?" "Of... destiny?" "If I want to fly thousands of miles to see a lifeless orb," "I can just visit Jenny's grandmother." "Same hostile environment, same freezing temperatures, same noxious atmosphere." "Huh." "Huh? "Huh," what?" "Well, this is a video of Granger's apartment lobby the night of the hack..." "check it out." "This guy enters the building at 11:05 p.m., just before the hack took place." "Now watch." "15 minutes later." "He leaves the building." "He could've piggybacked on Granger's wireless and used that to carry out the attack on the simulation security." "Yeah, but who is he?" "Esposito:" "Name's George Reyes." "The folks down at Mars 2018 recognized him immediately." "He's the senior facilities engineer, and he called in sick yesterday." "Nobody's been able to reach him since." "Did he have a motive to break into the simulation and kill Tom?" "Not that anyone knew, but his colleagues say that he's been acting secretive the last couple of days, ever since receiving a private communique from his wife." "What does his wife got to do with this?" "Maybe everything." "Ask me who his wife is." " Who's his wife?" " Angela Olvera, one of the other astronauts." "So, what was on the message?" "I was letting George know that I wanted out of our marriage." "You broke up with him from space?" "He was sending me all these sweet e-mails." "I couldn't let it go on." "I had to tell him that I'd fallen for someone else, someone on the mission." "Was it Tom?" "No." "Not Tom." "Oh, God." "What?" "Angela?" "I didn't say who it was in my letter." "Maybe he thought it was Tom." "Did he have reason to?" "Yeah, he did." "Tom wouldn't stop hitting on me all through training." "George told him if he didn't stop, he'd make him pay." "Yo." "We found him." "He's at the airport." "Just bought a ticket to San Francisco." "Airport security just picked him up." "We were a team, Angela and me." "We were gonna go to Mars together or not at all." "But when she got in and I didn't," "I couldn't stand in her way." "Hard enough to have her leave the planet, but to leave you for someone else... you must have been devastated." "Try utterly destroyed." "Is that why you hacked security?" "In order to break into the simulation and kill the man that you thought was Angela's lover?" "I'm telling you, I had nothing to do with Tom's death." "I was going to sabotage the mission." "I figured if the simulation suffered a catastrophic failure, it would set the program back, and Angela would come home to me." "But I chickened out." "The hack, setting it up to lead back to Granger... that's as far as I got." "I never went inside, and I sure as hell didn't kill anyone." "Then why were you leaving town?" "She dumped me." "How was I supposed to keep going to work there?" "I needed a fresh start." "And since I got her letter," "I've spent nights drowning my sorrows at O'Malley's." "That's where I was when Tom was murdered." " You can ask them." " Okay, Ben." "So who else could've used your hack to get through the simulation's airlock?" "It was calibrated to my biometrics." "No one else could've used it." " But someone did." " No." "If they got in, they did it some other way." "There is no other way." "I'm not so sure about that." " What do you mean?" " I studied the facility plans." "The simulation is like a bank vault." "To get in, you got to get past guards, security systems, cameras." "But like a bank vault, if you're motivated enough, there's always another way in." "You really think someone could've tunneled their way into the sim?" "No, but since George's alibi checked out, we're gonna have to look at all of our options, including the unlikely ones." "According to George's map, this abandoned utility access runs directly under Jansen's facility." "Yeah, but who would hate Tom enough to tunnel through 5 feet of concrete to kill him?" "I don't know, but, uh..." "But it looks like someone did." "Castle, boost me up." "Why am I always on the bottom?" "Yes, dear." "Planets [Sighs] dank access ways... is it just me, or does this remind you of "Alien"?" "I know that you want this to be science-fiction, but we are not in space." "No, but wouldn't you like it to be?" "Come on, you're a Sci-Fi geek." " Wouldn't you just love to go to Mars?" " Of course I would." "That's why I applied to Ian Rasher's [Straining] program last year!" "Wait, what?" "You applied to go to Mars?" "Without me?" "When?" "Well, we were fighting." "Oh, okay." "Well, I deserved that." "Oh, geez, Castle." "See anything?" "Someone did tunnel up." "Castle?" "I think I found the murder weapon." "[Hissing] Did you hear that?" "Whoa." "Hear what?" "[Hissing continues]" "Oh, whoa!" "Aah!" "What happened?" "Something's down here." "Some thing?" "What the hell is that?" "Told you this felt like "Alien."" "Castle, stop." "This is not "Alien."" "Did that look human to you?" "Actually, no." "Right." "See, I'm betting it's a xenomorph stranded here on earth, attracted to the simulation because it needs the toxic environment." "It probably saw Tom as encroaching on its territory" " and killed him for it." " What are you doing?" "I'm checking you for bites and scratches." "Making sure you didn't somehow get impregnated." "If you think that's how I get pregnant, we need to talk." "There!" "Beckett!" "It shed its skin." "It's not skin." "It's a gas mask." "It's a breathing hose." "For a human." "To protect themselves from the fumes of the simulation." "Someone was trying to break in." "[Whirring]" "Haroun:" "Yes, this was the access point." "Why would someone tunnel into my simulation?" "Well, maybe it's one of your competitors." "It could be espionage..." "Or sabotage." "And our victim might have found out and threatened to expose them." "Either way, this explains what he saw, why he thought there was someone else in there with him." "[Cellphone rings] How did they elude my cameras?" "Well, maybe they were working with someone that was involved in your program and knew when the cameras would be blacked out." "Excuse me." " Beckett." " Hey." "So, CSU just confirmed it." "The blood on the screwdriver belonged to Tom." " It's our murder weapon." " Okay, any prints?" "No, but if the killer was in the simulation..." "Then they would have been wearing gloves." "Um, okay, what about the gas mask?" " Anything from that?" " It looks military, but we're still trying to run it down." "Meantime, Ryan's pulling camera footage from the surrounding area." "Maybe we'll get lucky, catch our alien exiting one of the access points to the utility tunnel." "Probably won't know anything till morning." "All right, keep me apprised." "Okay, why don't you think about anyone that would have wanted to breach your simulation, and we'll keep you posted on what we find." "Yeah." "[Sighing] Oh, my God." "What a day." "I feel like I'm still covered in spider webs." "I cannot wait to take a hot shower." "Oh, maybe I could, uh, join you." "Ooh, that'd be nice." "We could relax, have a glass of wine... [indistinct singing]" "Do you hear that?" "[Muffled laughter]" "It's your mom." "And Ben." "And Alexis is here." "With friends." "Maybe we could go to a hotel." "And yet you think you could survive being stuck in a space capsule with four other people for a year." "I could, if you were one of those people." "Oh." "[Both chuckle]" "Wow, you guys." "Get a room." "We would, if there were any left!" "[Door closes]" "Maybe you shouldn't have been so quick to sublet your place." "You know, maybe we can just set up a schedule, or they could give us a heads-up and let us know what to expect when we get home." "I'm gonna call a family meeting." "Or we could just go to Mars." "Yeah, I don't think you'd be happy there." "There's no showers, there's instant coffee, and you have to bag your own..." "Hey, castles!" "Hey." "Any luck on that security-cam footage?" "Nada." "Your alien must've accessed the underground where there wasn't any coverage." "But we did have better luck with that gas mask." "CSU was able to pull exhaled-breath condensate from inside the face plate." "It contained trace amounts of DNA." "We get a match in the system?" "Not our system, but as part of the Mars 2018 program, every applicant had to submit sample DNA." "So, we ran it against that database," " and guess who popped up." " No!" "Granger's our alien?" "So, he was getting in and out, just not the way we thought." "Which means his alibi was a lie." "As soon as he knew we were onto him..." "He went back to destroy the evidence." " You bringing him in?" " I would if we could find him, but he's not at his place and he's not answering his phone." "Okay, put out an apb." "After our encounter in the dark, he might be on the run." "Esposito:" "I may know how to find him." "That gas mask..." "it's an uncommon make." "Not a lot of suppliers in the city carry them." "But I was able to track down the serial number to an army/navy supply store uptown." "Did they confirm that Granger bought it?" "No, the mask was purchased a couple months back, so no one remembered the buyer, but it was charged to a corporate account... a company called Newton Endeavors." " What do we know about them?" " Not much." "I couldn't find anything on the web, but I was able to track down an address out in Queens in Willets Point." "Well done." "Newton Endeavors." "Sounds space related." "[Dramatically] Space... the final frontier." "These are the voyages of Castle and Beckett." "Their ongoing mission... to explore strange new motives, to seek out new witnesses and new suspects for murder, to boldly go where... [normal voice] Oh, right over here." "Excuse me." "Is this Newton Endeavors?" "Oh, I'm sorry." "This is private property." "I'm gonna have to ask you to leave." "NYPD." "I'm gonna have to ask you to open that door." "What the hell?" "Is it just me, or does that capsule look incredibly familiar?" "Who would want to build a replica of Jansen's Mars colony?" "The competition." "Granger must have been breaking into the sim to steal technology for Jansen's competitors." "[British accent] I don't care if we have to pay them triple." "We cannot fall any further behind." "And I think I know which one." "All right." "Yep." "Sir Ian Rasher." "Billionaire playboy adventurer." "And possible accessory to murder." "You may want to rethink your application to his program." "Mr. Rasher?" "Detective Beckett, NYPD." " I was wondering if we could have a word." " Of course." "What can I do for New York's finest?" "Well, you can start by telling me where Clint Granger is." "I'm sorry, detective." "I'm afraid I don't know who that is." "Are you sure?" "Because looking around," "I'm guessing he's the guy that you hired to steal Viggo Jansen's plans for the Mars simulation." "[Chuckling] Detective," "I employ the world's best engineers." "Why would I bother wasting my time on my competitor's technology?" "Maybe because you're falling behind them." "It's no secret your last two rocket launches were spectacular failures." "You want to win, so you needed to buy a competitive advantage." "And after one of Jansen's team members discovered what you were up to... a man with your reputation and knighthood... you had no choice but to have him killed." "Killed?" "Who was killed?" "One of Jansen's astronauts..." "Tom Richwood." "I had nothing to do with that." "Well, the best way to convince me of that is to tell me where Granger is." "Unless you prefer prison." "Okay, yeah..." "I was spying for Sir Ian." "He promised me the pilot slot on his mission if I did." "But I was telling the truth about Tom." "I didn't kill him." " I have an alibi, remember?" " Alibis can be bought." "We found your DNA on the gas mask." "We know it was you in the access way." "Because I didn't want it to look like" "I had anything to do with this." "I went to make sure that I hadn't left anything there that could point back to me." " Like the murder weapon?" " Oh, come on." "If I killed Tom, do you really think" "I'd be stupid enough to leave the murder weapon there?" "Besides, I was never inside the simulation." "That would've been way too risky." "Too many opportunities to get caught." "Then why the gas mask?" "It was a precaution." "I wasn't using the tunnel to get in." "It was a drop point." "You were working with someone on the inside." "I needed access." "He needed money." "So we struck a deal." "He'd download schematics and plans and drop them for me in the tunnel." "Who?" " Mikhail Dankov." " The astronaut?" "If Tom was onto him, then maybe he's your killer." "We checked his tracker." "He was inside the habitat at the time of the murder." "Mikhail knew if his movements were being recorded, he'd never get away with what we were doing." "So he beat the system." "He cloned his tracker before they embedded it under his skin." "As long as no one was looking, he could slip out at any time." "Esposito:" "Mikhail?" "Yes?" "I'd like a few words with you." "What about?" "Your business relationship with Clint Granger." "Hey, hey!" "[Groaning]" "Come on, Mikhail." "You're crazy!" "Bro, where you gonna run?" "You're on Mars!" "Aah!" "[Groaning]" "I hate to admit, but it's good to be out." " Go ahead." " What do they say?" "Fresh air, Times Square?" "[Chuckles]" "Well, after the Mars simulation, prison should be a breeze." "So I was trading information." "Big deal." "I was leaving the planet and never coming back." "I wanted to make sure my family was taken care of." "Oh, noble." "[Scoffs] You Americans." "A little corruption never hurt anyone." "I don't think Tom would agree." "Tom?" "Tom was jackass." "Drove everyone crazy the way he doled out food and supplies and tried to leverage everyone for making even tiniest error." "Trust me, they may be scared to say it, but no one's sad he's dead." "No one was looking forward to spending rest of lives with him on other planet." "And yet, you are the only one that is unaccounted for during his murder, which means you are the only one that could've killed him." "Mm, no." "I could not." "I can prove where I was during the murder." "How?" "When commander Kim sent me down to engineering," "I used rare time alone to take pictures and download schematics from life support to give to Granger." "I still have the drive with all of my photos." "They're time-stamped with the mission clock." "So, your alibi is that you were spying for Granger?" "Go." "Look at my photos." "You'll see." "Ryan:" "So, I went through all of Mikhail's photos from the night Tom was murdered." "As you can see, he's telling the truth." "See his reflection?" "Yeah." "And the module clock confirms the time." "[Sighs] Maybe he faked the time, or maybe it was Granger after all." "It wasn't Granger." "Uh, Ryan, go back." "To... there, now..." "Zoom in on the window." "Look down on the bottom right." "Is that the rover?" "I thought the computer said that it was docked during the murder." "Clearly, the computer was wrong." "Now, uh, push in on the rover's arm." "Filter out some of that reflection." "It's the screwdriver." "There's your killer holding the murder weapon." "The rover did it." "The rover was out?" "This can't be right." "All the data from M.I.R.A. indicates that the rover was docked when Tom was killed." "I'd say the data's wrong." "And according to your literature, that rover has the speed and dexterity to kill with mathematical precision." "Mr. Jansen, who has access to the rover controls?" "One of your astronauts?" "Someone at mission control?" "No one has access." "The rover is an extremely complex piece of equipment." "Under human control, there's too high a margin for error, so we designed it to interface solely with the computer." "Our astronauts describe the sort of task they want carried out, and M.I.R.A. executes it." "Is it possible someone could have asked her to kill Tom?" "M.I.R.A. wouldn't comply with that sort of command." "But something's wrong." "I need to talk to her." "Well, is there somewhere we can do that privately without anyone hearing?" "Yeah, the computer-module pod inside the sim." "What's going on?" "I'll let you know soon." "In here." "[Air hisses]" "There." "I've cut off communications with the rest of the habitat." "No one can hear us." "M.I.R.A.:" "Is that you, Dr. Jansen?" "Yes, M.I.R.A." "What are you doing on Mars, doctor?" "I came to talk to you." "You remember Detective Beckett and Richard Castle." "Of course." "How can I help you?" "Are we seriously about to interrogate a computer?" "Detective, the word "interrogate"" "implies you believe I am guilty of something." "Of what do you think I am guilty?" "Well, at least she's not asking for a lawyer." "[Sighs] Uh, M.I.R.A., we'd like to know where the rover was when Tom Richwood was killed." "I already gave you that information, detective." "The rover was docked." "M.I.R.A., we know the rover wasn't docked." "How do you know?" "We have photographs, evidence." "Your evidence is incorrect." "The rover was docked." "M.I.R.A., prior to Tom's death, did someone instruct you to activate the rover?" "[Whirring]" "She's drawing more power." "Something's wrong." "No." "The rover wasn't activated." "The rover was docked." "Is it possible someone could have altered her memory?" "No one altered my memory, Mr. Castle." "My memory is perfect." "Her memory core was designed to be a closed system." "It can't be altered, but something's off." "M.I.R.A., run a level-one diagnostic on all systems." "There is no need to run a diagnostic." "All systems are optimal." "How about we run it anyway?" "I'm sorry." "I can't do that." "Why not?" "It violates my operational parameters." "It's a simple diagnostic." "What parameter does it violate?" "It will compromise the mission." "How will a diagnostic compromise the mission?" "!" "Answering that question will compromise the mission." " I don't understand." " I think I do." "She knows she's lying to us, and if she runs those diagnostics, we'll discover the truth." "And that truth will somehow put the mission at risk." "She's a machine." "She can't lie." "You said that she's programmed to learn." "What if somebody taught her how?" "What if someone used her to kill and then to help cover up the crime?" "No, her core parameters can't be altered." "She's programmed to protect the mission and everyone on it." "But what if those operational parameters a-are in conflict with each other?" "What if someone she's programmed to protect is a threat to the mission?" "Um, M.I.R.A., how would you classify Tom Richwood?" "Sergeant Major Tom Richwood, pilot, systems engineering specialist." " Right." "Right, okay." "Um..." " Deceased." "Was Tom a threat to the mission?" "Yes." "Why?" "Who told you Tom was a threat?" "I'm sorry." "I'm not authorized to give you that information." "Because in her mind, that information would be a threat to the mission." "There's got to be another way to find out." "There is." "I can reboot her." "Everything she's learned will be wiped, but all recorded memory will stay intact." "We can find out pretty quickly what happened." "[Air hissing]" "What's that?" "Someone's opened the vents to the outside!" "We're taking in atmosphere!" "It's M.I.R.A. She's trying to protect herself." "No!" "M.I.R.A., don't shut me out!" "You said that this was harmful but it wouldn't kill us, right?" "Short term..." "long term, it's deadly!" "We have to get out of here!" "[Coughs]" "It's locked!" " Call for help!" " Communications are dead!" "M.I.R.A., open the door!" "Open the pod bay door!" "[coughs]" "[Straining] I wanted to go to Mars... not die on Mars." "[All coughing]" "Wait a minute." "We're not on [Coughs] Mars." "We're on earth." "[Beep]" "[Ringing]" "[Coughing]" "Esposito:" "Hello?" "Beckett?" "Are you saying that the computer tried to kill you?" "Yeah, just like in "2001."" "Kubrick was right." "A.I. is a bad idea." "M.I.R.A.'S not A.I." "Yes, she can learn and adapt, but she's a machine." "She cannot think for herself." "Then why'd she try to kill us?" "Redley:" "It wasn't M.I.R.A." "We just pulled apart the server." "Someone embedded a subroutine into the O.S. reset program." "The moment that you tried to reboot her, that subroutine activated, trapping you guys inside." "It also triggered a dump of M.I.R.A.'S memory circuits." "All the mission data is gone." "So this was a failsafe installed by whoever was behind this." "We were never meant to find out about the rover or M.I.R.A., and on the off chance that we did, the killer wanted to make sure we didn't get any further." "By killing the only witness..." "M.I.R.A. And her memory banks." "It has to be one of the astronauts." "They're the only ones who could've planted that subroutine, the only ones who could've convinced M.I.R.A." "that Tom was a threat." "Yeah, but with the memory data unrecoverable, it's impossible to know which one." "No." "Not impossible." "As a matter of fact, there's only one explanation that makes sense." "[Breathes deeply]" "You can't be serious." "You think one of us is the killer?" "And it was almost the perfect crime." "All the mastermind needed was someone to pin it on, and that's where Mikhail came in." "Beckett:" "The killer must've found out that Mikhail was selling secrets, which made him the perfect patsy." "All they had to do was make sure that Mikhail was unaccounted for during Tom's murder." "That and plant the weapon at his drop-off point." "Killing two birds with one stone..." "Tom, whom everybody hated, and Mikhail, who was selling secrets." "So they sent Mikhail to engineering, where he would be blind to everything that happened." "Only he didn't stay there." "Instead, he went to life support, where, with one photo, he exposed everything." "Commander Kim, it was you who sent Mikhail to engineering during the repair, wasn't it?" "Yes, though there's nothing unusual about that." "No." "But according to procedure, isn't Angela supposed to be there backing him up?" "Yes, but I needed her up here checking protocols." "That hardly makes me a murderer." "And I never even left the module so I..." "I couldn't have planted the murder weapon in the tunnel." "No." "But Dr. Haroun and Angela could have done that." "The two of you were outside together for 10 minutes." "Yes, checking on Tom and restoring power." "While all the cameras were down, giving you enough time to ditch the murder weapon and clean any forensic evidence off the rover." "That's ridiculous." "Are you just gonna go after us one by one?" "I was with Rusham the whole time." "He didn't go anywhere near the rover." "And neither did Angela." "And that's what makes this crime so clever." "From the beginning, the three of you have been able to alibi each other out because you were all in on it together." "It would've taken the three of you colluding to convince M.I.R.A. that Tom was threatening the mission." "And given the way that you felt about Tom, you knew that the team couldn't survive with him on it." "He was a threat, especially on a hostile planet." "So, after six months of being locked up in this tin can together, you decided that rather than sacrifice your chance at being the first human beings to stand on Mars, you would put your shot at immortality" "ahead of another man's life." "Kim:" "That's a... fascinating theory, but with M.I.R.A.'S memory gone, you have no proof." "You know, that's what we thought, as well." "Until Dr. Jansen told us about M.I.R.A.'S black box." "In the event of a catastrophic failure, she pulses all her data to the nearest satellite." "All your conversations with her, everything you three did, it's all there." "So, the bad news is, none of you are going to Mars." "Good news is, the first one to cooperate will get the least amount of jail time." "I just didn't expect them to cave that quickly." "That was a clever ruse, Castle." "I'm just glad it worked." "And if there's not a catastrophic-black-box satellite, there should be." "What do you think is gonna happen with Jansen?" "Uh, he's a pioneer." "He's a visionary." "He may not get there in 2018, but I'm willing to bet that he's gonna be the first." "So, after all of this, you still want to go to Mars?" "Oh, of course." "But I think I'm gonna wait till they have first-class service so we can go together." "Oh." "Do you think at any point, one of those astronauts turned to the others and said," ""maybe killing Tom is a really bad idea"?" "I think that when people are stuck together in a small space for a long period of time, they lose perspective." "Speaking of which, um, wasn't there supposed to be a family meeting tonight?" "Martha:" "There is." "I told Alexis she did not need to come because I wanted to talk to the two of you alone." "Now, I know that things have been a little frenetic around here, what with Alexis and her friends and the two of you in and out at all sorts of odd hours and..." "And you and your new boyfriend doing late-night medleys." "I... well, yeah, that." "So, I have decided... and I don't want to upset either one of you... that I am going to look for a place of my own." "To live?" "Well, yes." "I mean, not right away, of course." "I mean, it's gonna take me a while to find exactly the right space." "Mother, I was just calling a family meeting." "I didn't intend for you to move out." "Darling, this is not about you." "This is about me." "Think of it as a kind of evolution, you know?" "I'm..." "I'm starting to do very well for myself, and I am guessing that, uh, before too long, there's gonna be a few more little Castles creating havoc around here, and... and I think the two of you" "deserve to have this place to yourselves." "Let me know if there's anything I can do." "Oh..." "I will." "Okay." "I am off." "I'm spending the evening with Benjamin." "[Singsong voice] So, don't wait up!" "Bye!" "[Door opens, closes]" "I did not expect that." "The unexpected is her specialty." " It's so quiet." " It's really, really quiet." "Maybe we should go out." "Ooh, there's a great Indian restaurant that just opened up around the corner." "Fantastic atmosphere." "It's loud." "Super-loud." "Lot of people lots and lots of people."