Please enable JavaScript to view this site.

Vensim Help

result = vensim_command("GAME>ENDGAME")

It is simple to end a game.  It would also be possible to update the display to indicate that the game is over.