All sorts of ways around that, so it's unlikely you would get a contract that precludes you not being out of support before the term is up.
As a thought experiment, if the company just went bankrupt and had no one working for it any more, you contract won't help right? Second part, what happens if someone just buys the assets (IP) and closes the company, then hires the old team? There are many possible variants here.