when given broken .json files, game tries to exit with error code