I think going bankrupt can be grounds for making the software open source or at least free to make the users whole. Think of it like a liability, when bankrupt the stakeholders can choose to refund customers or make the software available - whichever suits them.