Data arrives with a single use personal transporter and has the captain beamed back to the "Enterprise" before ultimately sacrificing himself to shut down the weapon and destroy the ship.
Data arrives with a single-use personal transporter and quickly beams the Captain back to the "Enterprise". In one of the most poignant moments of any Star Trek movie Data then makes the ultimate sacrifice to shut down the weapon and destroy the ship.