Cleanup after Add-in Execution

How do I cleanup anything left behind and for all practicalpurposes kill the process executed by an add-in after it'scompleted and/or crashes?

I have an add-in w/ a few functions... one of which is to print aset of drawings selected via the common open dialog box. The useralso selects a couple options using checkboxes on a form. The firsttime I ran it everything seemed to run great.

The second time I ran it... the form remembered my previouslyselection (which tells me I'm not disposing of items as I should)and it didn't run properly.

Thx,
EricSolidworksApi macros