title: How to close browser at the end of watir test suite?
body: <p>Using ruby's watir to test a web app leaves the browser open at the end. Some advice online is that to make a true unit test you should open and close the browser on every test (in the teardown call), but that is slow and pointless.  Or alternatively they do something like this:</p>
  
  <pre><code> def self.suite
     s = super
     def s.afterClass
       # Close browser
     end
  
     def s.run(*args)
       super
       afterClass
     end
     s
   end
  </code></pre>
  
  <p>but that causes the summary output to no longer display (Something like "100 tests, 100 assertions, 0 failures, 0 errors" should still display).</p>
  
  <p>How can I just get ruby or watir to close the browser at the end of my tests?</p>