Isn't there a EU directive (ATAD II?) that requires exit taxation by an EU member state for natural persons that hold more than 10% interest in private companies and more than 1% in public?
Denmark has a different approach and does a yearly deemed disposition of financial assets and taxes unrealized gains.
Canada does this when you become non-resident and leave the country.