Good for you for walking away. Next time (sorry, there may be one) I hope you walk away sooner. Sort of like training her/him that it is falling on deaf ears....You are not the office punching bag, so don't take it. Not in your job description...right?!
I hope you have a great rest of the day