... Usually there are housekeeping chores that should be done just before the app shuts down, like closing and open DLL's, closing all open databases, destroying all resources, updating the app's .ini file with user preferences, and clearing memory. Plus on a network where you have granted your user ...