Yeah, this bug is really annoying. What's worse is that when you try and reboot the ship so you can salvage it manually, they will regularly immediately fly off to go fight something, despite no longer being in a faction.
Can you PLEASE make ships get kicked from their fleet when they overheat...