add LoginWindowClose sample