ATM timed out

Hullo, my husband recently had his cash snatched back into the cash machine because he took too long!  I expect this has happened to others. To add insult to injury the money was deducted from the account.  The bank in question finally repaid it, but surely there is some way the banks can set up your account to give a little more time at the ATM?  I have asked two banks this question - watch this space!