How To Crash The Game?

Okay, I realize that the title of this thread is a little strange, but I need help scripting an event. I want my game to crash and become unplayable once the player beats it (I know it sounds like a stupid thing to do, but it makes sense when you take the story of my game into account). Is there any way to do this? It would make the ending of my game about ten times more impactful if I can get something like this to work. If you can help me with this, would you mind writing out the code I would need to use and where I would need to put it? I'm relatively new to RPG Maker as a whole, so it's a bit difficult for me to understand code.

Anyways, thank you in advance for any help you can give!
You can use window.close() to force the game to close.

EDIT: If you want to go the extra mile to make people cry I suggest making a white image and making it show with a low opacity to simulate it a window that is not responding as well as using a plugin to change the mouse into the Windows 10 (most people use it nowadays I hope) to the blue loading circle.

And don't forget that alert("text goes here"); before closing, with some weird error message such as "YOUR SYSTEM32 FOLDER HAS BEEN DELETED" so the players have a heart attack IRL.

jk, don't give people heart attacks

EDIT2: Heck, why stop there when you can delete their saves? https://forums.rpgmakerweb.com/index.php?threads/delete-save-file-automatically.101850/
I think Olivia also has a meta control plugin that lets you mess with switches and variables across saves.
Here's a sample of what I envisioned: https://www.mediafire.com/file/cjdxvq4ibdedr45/broeken_trashcan.rar/file

All it's really missing is a way to delete your system32 folder and gather all credit card numbers that are conveniently stored in a text file in people's desktops...
jk jk
All you really need to do is go into the "Script..." event command in the event editor, and type in any kind of random words (MaybeOnesThatRelateToYourGameInThisFormat), and that should be enough to crash the game when the player encounters that event line.

I still think the better way is to "simulate" the crash using graphics and sounds onscreen, though. If the player has no way to get past that screen (aside from closing the game), it's as good as a real crash.

Original thread: https://forums.rpgmakerweb.com/threads/how-to-crash-the-game.107828/