I’ve had that happen to me a couple of times. Thai people were good enough to catch me before I left the premises and give my card back to me. In several other incidents, when I reported the card retained by the ATM machine and even gave them the machine number, the banking staff told me I would have to contact my bank in America. I was using my debit card from the USA, so they were remarkably unhelpful. If the ATM is not physically attached to the bank, they will do anything to keep from being helpful.