Sorry to hear this,
@gigatexal
I had a similar experience a bit over a year ago. I took a contract in a new city, signed a lease on a new apartment and commuted 200+ miles to work each week, much to the annoyance of my wife who threatened me with a divorce after a few months of this. Despite doing an excellent job of everything I was asked (and receiving positive feedback to this effect), the contract was terminated prematurely without any explanation. Given all that I'd risked personally it was a pretty big kick in the gut to experience this ...
The upside is that the experience I gained on this project opened a lot of doors for me. Within six weeks I had multiple offers, and the one I accepted has ended up being the absolute best experience and best company I have worked for in my 23+ years of IT career. Who knows how these things end up, but I could actually see myself retiring from this company in 20 years if all goes well. - which is something I've never even considered as a possibility until now.
One door closes, another opens. Stay positive and the opportunity you are looking for will present itself.