There actually are legal ways to do that… instead of buying the company, you start a new company, and just buy assets of the old company (e.g. phone numbers, web sites, trademarks, customer lists). Seems shady but apparently it’s pretty common.
Common doesn’t mean not shady. In Australia there are measures in place (eg. national registry for company directors, personal liability for directors) to combat this kind of ‘phoenixing’.