* All needed settings for example: set deleted on set exact off * and so on, then on shutdown do exit_to_windows * then do the main form/menu etc do form myForm read events exit_to_windows() function exit_to_windows() * Clean up code clear dlls release all clear all close all quitWhen windows shuts-down, the program should end cleanly