If the store closes shop and goes bankrupt, and the court orders the goods auctioned off, whoever buys them buys them. Heck, when you go to the store, you own the thing you buy and can do whatever the heck you want with it, including selling it.
It's possible that there are ways for the manufacturer to maintain control in case of an authorized seller's bankruptcy (e.g. not actually selling it to them until it's transferred to customer should work), but if they actually transfer it to them they only can demand contractual damages from them, not stop a buyer from doing anything with the product.