I haven't seen this one listed in the posts from the last year, so here we go !
I suggest that ships can have the ability to self destruct if the player has that feature "built" into their ship.
How it works: When a player enters a "code" into his computer system, the self destruct is activated for X seconds. The explosion would result from:
1: Overloading the ship's power cores.
2: Setting off all ammo dumps aboard.
3: Overloading all the power weapons.
4: Detonating any explosives that the player has built into the hull.
Why would some one want to blow up their ship ?
I could think of some good reasons such as:
1: The ship is not worth salvaging.
2: Enemies are about to capture the ship during combat.
3: Ship is damaged and the player chooses to kamikaze