In the case of bankrupcty or receivership, whoever is the insolvency practitioner, say, Deloitte, takes-on the severance (etc) liabilities.

Deloitte's job is to sell-off the company but they also have to pay severance to employees if they lay them off before selling-on or liquidating the business.