A company is worth bailing out → we have too much to lose by letting them fail, because their function is essential to the broader society (& no alternatives).
But if their function is essential to the broader society, then it has utility to the public, hence it should be treated as a public utility.
So if a company asks for a bailout, let’s nationalize it. No free profits for the managers, they can be civil servants.