The government should never have bailed out the company in the first place. But when they did, they bought not only the company, but all of the contracts that went with it. You can’t just ignore contracts because the government owns the business.
When a company fails you certainly can ignore contracts. The agency or company taking over has to honor the contracts or not. Is agreed to upfront in the take over.