Wait, you're telling that you managed to get money out of your bank account but then found out that your account is closed?
If that's the case, then:
Its good idea to contact with bank ??
They'll contact you first.
Anyone have advice how to avoid this happening again?
Open bank account in country where banks don't care about their customers e.g. in Poland