you could have simply (and consistent with blender dialog box) a double popup when the file wasn't saved. a first one "file not saved ! [OK]" and then the standard one "Quit Blender ? [OK]. seem easier to implement. Xand +++