@amleto
Agreed, adding a quit command may be a sensible thing to do, but that will not make the shutdown code be executed when the application is terminated by Ctrl+C, through the task manager, or when the user logs out while the application is still running. Whether or not this is acceptable is up to the OP.
Bookmarks