When you buy a company, you don't buy just the assets. You also acquire the liabilities, which include debt, warranties and support contracts.
Once the operations have failed the various creditors likely benefit from reasonably priced sales the assets.