As was mentioned above, it is distributed (essentially 'sold') to the taxpayer/shareholder at Fair Market Value. That is required.
The individual person is a separate taxpayer/entity. They will restart depreciation using their 'purchase' cost.
After 20 years, and factoring in 20 years of depreciation, do you really think there won't be much of a gain? That would be ideal, but I suspect the gain due to the depreciation could be large.