I think you handled things just perfectly, not letting him mess with your mind and seeing him for exactly who he is. He's totally p**sed that he's losing control and is trying to make you feel small so he can gain it back, but you are just too cool for him!!
Hang tough, girl. You're almost out of there!!