Does anyone know why does the game crashes in a dialogue with a "close_window" command after it finishes?