Click File tab > Exit to exit PowerMill.
If you have any changes that you have not saved, the PowerMill Query dialog is displayed. It contains the following: