Private persons have to pay income tax when they sell their shares for a profit. So there is no way to avoid the income tax and getmoney out of the company without taxes.
There is no such thing as "capital gains" tax, everything is covered by income tax, at the same rate. You can't use the US tax system to cheat Estonian taxes:)