>> A bacterium that completely kills off its hosts is not very smart. <<
Not a bacterium, not species-specific, not “trapped” inside its own host.
Eventually, there would be no more hosts if it keeps this up, or if any survive, they may not be very forgiving. Even for a fungus, not very smart. My advise would be for it to ease up on this extinction business.