Sorry to hear that he treated you that way, duq.
Do something nice for yourself this weekend (if not before!) and breath a huge sigh of relief that you were able to get out now. And maybe, in a little while, get a copy of co-dependent no more just to make sure that you don't make a habit of this kind of relationship in the future.