yr.quit

quit() → None

End the current app run as a user-initiated quit.

Distinct from exit: signals that the user chose to stop rather than the app completing or failing.