I wish to add this same warning to an existing macro I made.
You could intercept GlobalMacroStorage_QueryDocumentClose or GlobalMacroStorage_QueryQuit
Not sure how to do that. Messed around a bit but...