The pop-up window reports an error when exiting the game

image When I click to end the game, it will give me an error pop-up window, please solve it, I wish you a happy work