The odds of getting selected in the lottery are not tied to the identity of the sponsoring company so a change won;t change these odds. You would have 60 days from the date your employment ends to do something - filing a new TN petition, for example - before you would need to leave.