Sorry about the rough day, though I'm glad to hear that OW wasn't on the scene.
Re the evil nasty version of SO... If he is on pain pills, they could be making him very, very mean.
Hang in there. I think you are right that it was definitely a step forward to call him on being mean and hurtful rather than falling into the old cycle.