That is terrible. Your soon to be ex-boss is a scumbag.

I hope you are leaving to go work with a decent company.