The problem here isn't that I didn't have a safety net, I'll survive. The problem from my perspective is they behaved like total jerks and were getting away with it.
I hope it works out better for you in the future. I'm pretty sure it will, you obviously have the skill... just need to find a better fit.