In battles where you have limited lives, like in Battle Royale, 4-Lives, or PvE, you should be able to leave the battle without having your ships trapped in battle.
And if for some reason you do get removed from battle incorrectly, there should be a PERMANENT REJOIN BATTLE BUTTON.