You can turn off the option "Fight to the last ship" or whatever its called in options under custom game.
As long as a civ has like 1 ship left, they are consired still in it to win it.
Also, there is sometimes a bug that flags "Pirates" from a Starbase, Shipyard etc as being from the previous race, and you need to kill the pirates.