only close window, when window handles > 1