The pilots are not supposed to open the cockpit door, but if the door was breached then one pilot should fly the airplane while the other pilot should use the firearm in a last-ditch effort to keep control of the aircraft so that the airplane is not shot down by fighter jets.