How to crash the game

So, I've had this idea to implement on to my game, I would like to add an event where the game closes by itself, making it look like it crashed.

Is there a script or plugin that can do that? If so, please share! Thank you!
Not very elegant, but this will force close the game:

Code:
window.close();
edit: use in script call.
Not very elegant, but this will force close the game:

Code:
window.close();
edit: use in script call.
Thank you so much!
Not very elegant, but this will force close the game:

Code:
window.close();
edit: use in script call.
but you can make it elegant.
before the closing of the game, add a play sound event and use a windows error sound and Show picture of the glitched area you want the game to close from

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