If the company changes owners in whole or in part, it is still the same company and this will not terminate any contracts. If, instead, the company sells its business (which is an asset of the company that it can sell like a car or a building), then the contracts are transferred as part of that sale.