Blowhard Aholes are like dog poo in the back yard. Just avoid them at all costs and if you do run into one get out of there as quickly as possible.
I have also had run ins as you did, you did right by getting out of there. Now just keep telling yourself, when you get more experienced dont act...