If the money is stuck in the ATM, you should not move away from it. The first thing to do is to call the bank.