Can't answer that. Depends on what local law says about it and how the step before (i.e. the company and its profit) is/has been viewed for tax purposes.
I doubt you will be able to avoid taxation on it, if dividends and capital gains are taxed where you live. Wouldn't hurt to discuss your options with a local tax adviser, though.
If local law permits it, using a trust︀ would at best probably just defer the tax obligation. That would buy you time to︁ relocate to a tax haven and cash out there. However, if time is also of︂ the essence, you probably won't have enough time to establish tax residence in your new︃ place and tax non-residence in the old.