Vincent de Lachaux, 4D iNug Technical, 18. Sep 2015
When 4D Quit, all processes are called and you can do something like closing your dialogs:
: (Form event=On Outside Call)
If (Process aborted) //4D wants to quit
//Do something (rapidly, you have 3 seconds).
CANCEL //close dialog