The Enterprise speeds toward Camp Khitomer where the peace conference has already begun. The Klingon warship, piloted by Commander Chang (Christopher Plummer), begins to fire on the Enterprise but, because the prototype Bird of Prey is able to fire while remaining cloaked, the Enterprise is unable to accurately return fire...until Spock gets the idea to use the equipment they are carrying for detecting gaseous anomalies to detect the gaseous emissions from the Bird of Prey's 'tailpipe.' With the Excelsior helping to distract the Bird of Prey, Spock and McCoy modify a torpedo to carry the equipment, which homes in on the Bird of Prey's exhaust and reveals its position long enough for the Enterprise and the Excelsior to destroy it. Meanwhile on Khitomer, a Klingon sniper is seen assembling his rifle and aiming it at the Federation president (Kurtwood Smith). Crews from the Enterprise and the Excelsior beam down just in time to stop the sniper, Kirk knocking the President to the floor and Scotty shooting the sniper. When Azelbur asks what is going on, Kirk explains, 'Your father called the future 'the undiscovered country'. People can be very frightened of change.' Azelbur replies, 'You have restored my father's faith,' to which Kirk adds, '...and you have restored my son's...' After a round of applause, the Starfleet crews return to their respective ships, and Kirk thanks Sulu for his aid. Uhura announces that she's just received orders from Starfleet Command telling the Enterprise to return to spacedock to be decommissioned. As the look of disbelief passes across everyone's faces, Spock says, 'If I were human, I would tell them, Go to hell.' When Chekov asks for their course heading, Kirk replies, 'Second star to the right and straight on 'til morning.' Kirk then enters into the log that this is 'the final cruise of the Starship Enterprise under my command' and that a new crew will take over the Enterprise and continue 'to boldly go where no man...no one...has gone before.' The Enterprise then goes to warp and disappears. As the credits begin to roll, the signatures of each of the main crew members of the Enterprise appear one-by-one.