Sounds like you and the kiddo both handled his stupidity pretty well. He is what he is. As you said, thank goodness you have a well-grounded kid and that there is an end in sight to this nuttiness.
I think your idea of limiting contact to text/email for a while is a good one. Hopefully he will settle down a bit once this becomes the new normal. Not that I'd expect mature, responsible behavior from him, but you can definitely do without the outbursts.
Whattamaroon.