In a share deal the company remains the contract party, but control can still trigger the clause.
Read the clause for direct and indirect control changes, voting rights, ownership chains and group companies. A shareholder change is not automatically a transfer of the contract.