To leave the program
From the File menu, choose Exit.
or
In the program window, double-click the Control box, or from the control box, choose Close.
If you haven't saved your most recent changes, the program displays a warning.
Choose Yes to save the changes.
Choose No to discard the changes.
If you're working on a new, unnamed document, the program displays a warning.
Choose Yes to save the document
Choose No to discard the document.