IF this.cangoon * save old menu, run new one push menu _MSYSMENU Do IT.MPR read events else * something bad happened so can't run app endif * clean up and close shop * upon termination, restore menu MESSAGEBOX("we got Here") &&Doesn't get here when clicking EXIT pop menu _MSYSMENU to master set sysmenu to default(I have some cleanup code somewhere else)