Oh my! That just scared me while I was reading it. I am soooo glad she is okay.
As for the punishment, you do what you feel is right. Others might say doing that doesn't work because dogs don't think or feel like we do (whatever). But she's your dog and you can do what you want. You aren't abusing her and that's all that matters.
I once got so angry at Zoee for something (I don't remember what now). She knew how angry I was and followed me around with such a sad look on her face. And once I yelled at Taggart for something. After I got out of the shower he had chewed one of my sneakers. He never did that before and never has since. Every dog is different.
Personally I would be all over her loving on her because she is safe. But yes, I would limit her freedom today as well.