# File 'lib/watir-classic/browser.rb', line 384defclosereturnunlessexists?@ie.stopwaitrescuenilchwnd=@ie.hwnd.to_i@ie.quitt=::Time.nowwhileexists?# just in case to avoid possible endless loop if failing to close some# window or tabbreakif::Time.now-t>10sleep0.3endend