There is some great advice already here. But here are a few things to ponder:
1. I say good riddance. Better not to be working at this place.
2. More importantly, things could have been worse for your immigration status if you would have joined this company and they would have eliminated your position then. Now you at least have the option of going back to your current employer without any hassle of visa transfers.