If you ran out of time and you are sent home, just tell your new company to send you a business visa so you can go back here and transfer to the new company. The important thing is the NOC, as long as your former company will give it, you'll have no problem transferring. You can even get your own visit visa and come back here to look for a new job if the first option will not work out.