Use the ON SHUTDOWN [do SomeRoutine] command to specify what happens here. You can put up a wait window or whatever. Just remember that you should find out if the user wants to quit, no matter how you word it, and do something appropriate. You can also issue ON SHUTDOWN with nothing else to clear it, in which case you will clear the current ON SHUTDOWN command without replacing it. The help isn't much more complicated, but you should take a look anyway to understand it.
Dana