"Socializing the losses". It will happen anyway. Perhaps not in the USA, but in Europe, the 30,000 unemployed would get an unemployment benefit for X amount of months, their formetly-private-provided healthcare wouldn't be paid for (thus covered by the state), and so on.
So, doing the math.. does it make sense to 'inject $€ X million to keep the company afloat, get the 30,000 and their families fed, the money would come back to the state via taxes, in the hope that the company will go back to the green?
If one (not me) can crunch the numbers, it could (or not?) point to the direction that it was money well spent - and net-net it wasn't "$€ X million" wasted but a fraction of that(?)