You’re lucky that didn’t get you killed.
I react fast. As soon as the hood came up I scrunched down to look out through the gap under the hood at the bottom of the hood and slowed to pull over off the road. I tied the hood to the bumper with a tow strap I had in the trunk and drove it for a week longer then sold it for not much.