add dontThrow option ; change waitForClose