Or....close the document - with or without saving - BEFORE quitting the application.
Technically speaking, these are two different things.
If there ARE no documents open - after being saved or not saved first - then Application.Quit will fire properly, as there is no document to ask about.