I need to add a quit handler to perform some tasks before quitting.
Tasks: ask the user for saving or not its data;
This cannot be done under closebang or notifydeleted, because:
-if I open a window in the caller thread, max is then freezed
-if I open a window in a thread, then the application is closed before I
can do anything.
Do you have an idea of how to do this?