This is not entirely true, the shareholding of your company will form part of your estate when you die and may not 'last forever' as an executor will step into your shoes and distribute the asset to your heirs.
That is not 100% correct The estate will own assets comprising the shares; not the assets of the company. So the company and it's assets live on.....