After 10 deaths you can skip the stage altogether and get to the end, but be warned to unlock stages later in the game you will need a large
number of star medals and you have get star medals and then complete the stage on your own for them to count towards your overall total.
Star Wars Rogue Squadron II: Rogue Leader gives players
medals after each mission, weighing in completion time,
number of enemies down, shot accuracy,
number for allies saved, lives lost and target computer efficiency — the better you do, the more unlockable content you get (including Boba Fett's Slave I and a 1969 Buick Electra 225).