An engineer who got stuck in an ATM wrote notes to customers and pushed them out of the receipt slot before being rescued.