script call to exit game?

i was wondering if there is a built in script call i can use to let the player exit the game at any given time (like after they save and it give them an option to exit the game)
Well, it's really simple. I have also included a spoiler tag with how I'd set it up, if I were putting it in a common event


SceneManager.exit();

Spoiler
Capture.PNG


It doesn't auto-fade so I would add the Fadeout screen for a smooth exit (unless you want a really fast, abrupt exit.)
thank you

Original thread: https://forums.rpgmakerweb.com/threads/script-call-to-exit-game.59388/