They can close your accoutn for hwhatever reason, especially if you hit a flag or if thy think you are avoiding taxes. YEs people, avoiding taxes is iilegal under AMLD6. You can do everything legal but if the bank THINKS you are not, they will be entitled to think so without clarfying if the issue really is illegal.
For example;
You ride a bycicle at 20mph and cant physically go faster on that bike otherwise itll explode, the cops flash you and tell you were doing 400mph. Therefore you were doing 400mph. If only someone would ask what you were driving then it would make "real world" sense you could only have done 20mph. But the banks stop at the 400mph mark and do not afford further thinking.
SO stop with the "but" "however" sentences, the bank closed your account because of some reason(and it could be even a derisking exercise, ie cancel everyone in Nepal or cancel everyone who logs in between 2-4AM local time since that means a lot of fraud). In either case if its the latter tyou should have your money back in weeks, if its the first, itll be 6 months(Assuming nothing is wrong). As the bank needs to produce a AML report (400mph) and send it off to the local crime fighters, who then decide if you can have your money back. SO in your case I would have thought you might have funded the account from your name. Then left the money there, and then proceed to pay some random friend/family member. Yes that will tick their boxes in terms of "close" account
Unfortunately these days the state are more likely than not to deny having your money back as it raises revenue for the state. The state's preferred option is to take your money and not pursue you for a crime. Yes, so they grab your money yet you are not a criminal proven so in court.
In case you were still wondering, yes it is in the BANKs and the STATE's interest to block as much money as possible so they can raise revenue under the heading of "fighting crime". Hiring AML officers and let the customers of the banks pay for this themselves.
So if you send money to your friends, the state will simply claim you were doing money muling or avoiding "insert reason" just to have a stab at grabbing your money as all it takes is a judge to sign off on this. And remember it is not about them proving something is, the state can scream their head off, its up to you to proof something is not. Yes the reverse burden of proof has been implemented - good luck.