rumps.
quit_application
Quit the application. Some menu item should call this function so that the application can exit gracefully.