Prevent crash dialog from popping up when the game restarts

Fixes #6887