The Unload event is the common place to put "cleanup" code. Code placed in this event generally closes any forms that are still open, cleans up any variables, and basically clears memory space that has been used by the application.