Also!! Mind your p's and q's until you are out of there and even for a while after. You leave, and you know he's gonna start looking for dirt on you. Clean out everything that you can (emails, texts, pics, browser history, etc.).
Don't start any new relationship for a while. 1. Because he'll use it against you in court. 2. Because you need to work on fixing you before you can get involved with anybody else (broken and hurt does not make for healthy relationships). I know that you don't want to hear "no sex" for a while, but I really think it's going to be your best option at this point. It will give him absolutely NOTHING to use against you.
Married 12 1/2 years. Female. Straight. New to poly.