The bot will get stuck in the bank if you have "less CPU" enabled on the client. The way I have been able to temporarily fix this issue is to just click the X of the bank interface. A permanent fix will have to be done inside the script, maybe make sure that the bank is closed before trying to add cash into the pouch. Other fixes would just to deposit the coins into the bank.