Consult a bankruptcy attorney. This is not a DIY project. You own shares in the corporation, there may a risk if you don't get it right.