Stargate Atlantis/Recap/S01/E04 Thirty-Eight Minutes

"Sheppard: In the cockpit, on the left.

McKay: The cockpit is regrettably demolecularised at the moment."

The episode begins In Medias Res with the damaged Puddle Jumper fleeing toward the Wraith space gate, while Sheppard lies twitching on the floor with some kind of funky alien bug thing attached to his neck. Due to some damage to the ship, however, the engine pods do not retract, and they get stuck halfway through the Stargate. And due to an entirely new explanation of wormhole physics, this means that not only will the back half of the ship be exposed to hard vacuum when the gate shuts off thirty-eight minutes from now, but the front half totally refuses to re-materialize on the other side, and will be lost in limbo forever. Oh yeah, and Sheppard's got a thing on his neck.

Weir sets a team of scientists to come up with potential solutions given equipment lists and the back half of Jumper 2, Apollo 13 style. McKay fiddles with stuff on their end, while Teyla and Ford (with the help of Dr. Beckett) try pouring various chemicals on Sheppard's bug to get it to roll over and die. They do discover its weakness - salt water - but instead of giving up gracefully it reacts by strangling Sheppard for everything it's worth. What's worse, it seems to posses the Wraith's ability to heal itself by sucking the life out of its host. What's even worse than that, they're pretty sure that gate travel will instantly kill Sheppard if he's still got the bug on him when he goes through.

The only thing for it is to kill him. Ford uses the emergency defibrillators to stop Sheppard's heart, convincing the creature to give up and leave of its own accord. It works, but unfortunately, they can't get his heart started again afterwards, so Teyla drags him through the gate to keep him preserved until they get back to Atlantis. McKay finally manages to press the right sequence of crystals to retract the engine pods - which does nothing, since the Jumper has no forward momentum, and so just sits there. With just seconds to spare, Ford blows the back hatch, letting the explosive decompression propel them the rest of the way through the gate (and conveniently blowing the bug out into space).

Dr. Beckett's medical team successfully revives Sheppard, and there is much rejoicing.

--

Joe Flanigan (John Sheppard) once said in an interview that this was one of his least favorite episodes.

It is also noteworthy that this is the first time in the Stargate franchise that defibrillators do anything at all.

Tropes
"Kavanaugh: We can't rule out a catastrophic feedback in the drive manifold!
 * Anachronic Order: Sort of. The main story is straightforward, but interspersed with a series of How We Got Here style flashbacks, which are not ordered with respect to each other. For instance, Sheppard picking up the Iratus bug is one of the last scenes shown.
 * Chekhov's Gun: The defibrillators.
 * Continuous Decompression
 * Dying Declaration of Love: Perhaps. Sheppard is about to tell Weir something, but is interrupted by somebody in a "I have a plan" moment. At the end of the episode, Weir asks him what he was going to say. He claims it was "take care of each other," but Weir is obviously unconvinced.
 * Ensemble Darkhorse: Dr. Zelenka!
 * Exact Time to Failure
 * Flatline Plotline
 * Incredibly Lame Pun: Dr. Beckett at one point refers to the Iratus bug as a "Cling-On" -- and even he winces as he says it.
 * Magic Countdown: Averted - it really is 38 minutes from the time the gate opens to the time it closes.
 * Portal Cut
 * Real Time: In fact, the only Real Time episode in the entire run of either Stargate Atlantis or Stargate SG-1.
 * Revival Loophole
 * Straw Vulcan: Averted. As McKay is methodically trying each crystal to see which will retract the engine pods, Weir tells him to stop being so methodical and start trying them at random (since there won't be time for all of them). McKay, quite sensibly, points out that that would mean a chance of trying some of them twice, thus wasting precious seconds.
 * Techno Babble: Invoked.

Weir: Without the technobabble please."