Simulating a game crash?

So...Maybe it's a stupid idea but I was thinking of putting this optional boss in my game that is kind of an easter egg and what I need to do is simulating a game crash when the boss inevitably beats the player and then display a custom error message
Is this possible?
Use these script call
Code:
Sound.play_buzzer
msgbox "Write any message error here"
exit
The 'exit' line is optional. It forces the exe to close. Don't add it if you don't want to force exit the exe.
Use these script call
Code:
Sound.play_buzzer
msgbox "Write any message error here"
exit
The 'exit' line is optional. It forces the exe to close. Don't add it if you don't want to force exit the exe.
Thank you!

Original thread: https://forums.rpgmakerweb.com/threads/simulating-a-game-crash.98102/