Better handle game shutdown when an exception is encountered