Click the green flag sit back and relax.
This would be one of the most embarrassing moments especially when it was to a male teacher. But once i said it to my female year 2 teacher and she said it was okay and someone once called her grandpa. But don't worry lots of people have done it.