Is there any way to force close the game?

I want to include a little horror easter egg and want the game to close after a short cutscene, is there a way to do that normally or will I have to script it?
It's called the gameover event command.
It's called the gameover event command.
I think he wants the game to just exit/close, not to display game over and go to title screen.
I want to include a little horror easter egg and want the game to close after a short cutscene, is there a way to do that normally or will I have to script it?
in an event script command put in
exit
There's a serious problem with the request. At some point players will complain about it and probably demand that feature to be modified.

Anyway, let's assume now that nothing serious happens. Using exit as Roninator suggested is considered a terrible idea. It's like unplugging your PC's power cable by force instead of shutting it down the way any modern OS lets you do it. That exit call skips the proper disposal of all graphics. This means they'll remain in your RAM longer than needed. Why? Because Ruby takes care of disposing its own objects, not those programmed in C or C++.
At some point players will complain about it and probably demand that feature to be modified.
its an easter egg, if anyone complains I'll just tell them to not go out of their way to interact with it
That exit call skips the proper disposal of all graphics
ok, then how do I force the engine to dump the graphics beforehand?

Original thread: https://forums.rpgmakerweb.com/threads/is-there-any-way-to-force-close-the-game.175320/