Add window listener to close properly the game