It would be a good idea to get information on the required steps to take when your depature is delayed due to circumstances you donīt have under your control. That might be a good practice even if you do not expect to not be allowed to go back to your home country.
If you are permanently stuck, you might be able to open a bank account and get the money tranferred. Again check on the laws about how much you can transfer and what kind proof you need for the origin of the money (e. g.: in Germany more than 10000€ must be reported by the bank due to laws against money laundry).
As for finding a country to take you in, you might be able to claim refugee status. In that case Iīd try to find a NGO that supports people during this process.
_________________________
If it isnīt broken, it doesnīt have enough features yet.