Select File > Exit Command. The software prompts you to save your changes before closing the application.