It's my opinion that taxpayer money would have been needed for the DIP financing. But even that would have been far preferable to just giving the money away.
Absolutely, agreement for DIP financing in case of bankruptcy reorg would be much better than what has been done.