MV A plugin that will close the game.

Nothing specific, just a short script which will close the game, i want it for an event, after a line of text i will put a script that will close the game.
Thanks!
exit() in a scriptcall closes the game instantly or close()
Code:
SceneManager.exit();

Event :

Code:
Show Text: "Thank you for playing!"
Script: SceneManager.exit();
Thanks!

Original thread: https://forums.rpgmakerweb.com/threads/a-plugin-that-will-close-the-game.153534/