I keep a second bottle on my bike filled with stale chocolate milk. I use it for spraying at annoying people.
But in all seriousness, you'll get used to it. Hindsight is 20/20, but you've gotta stay VERY aware of what's going on around you and keep your mind open to check if you're irritating someone. I've been in the same situation as you more than once, and I've learned that as soon as someone in front of you is honking to pull the brake a little bit. It's become natural to me. Just like when you see brake lights you press the brake in your car.
Glad you're ok. Stay on the bike until you cool off.