close window after startgame