Worst nightmare - she pooped in the pool

My 3 yr 2 month old pooped in the pool at swimming today. Her age and class doesn’t require swim diapers. She’s been potty trained, or as potty trained as a toddler can be since august.

She told her teacher at swimming she had to go, but the instructor was with another kids. As the title indicates she pooped in the pool.

Everyone had to get out and the following classes were canceled. It was humiliating to inconvenience all the families there, and all the kids and babies in the class after.

I know this stuff happens, but I feel like I need to pull her. Is is the advice I would say to anyone else, no. If this happened to a friend I’d say “this kind of thing happens, she’s only 3.” But I can’t shake this desire to just pull her so I never have to show my face there again. I know, that’s incredibly selfish.