[quote user="Daniel MacNeil"]Is there another way to just unload the app?[/quote]
My apps. always have an exit command, which does this...
mdlDialog_cmdNumberQueue (FALSE, CMD_MDL_UNLOAD, mdlSystem_getCurrTaskID (), TRUE);
When you queue an unload command, your app. will have an orderly shutdown rather than an abrupt exit. For example, your OnUnload event handler will be called, giving you an opportunity to save settings or data before the app. finally quits.