title: Chrome driver doesn't quit after capybara test
body: <p>I'm using capybara 2.1.0 with the <code>selenium webdriver</code> by default, <code>minitest</code> and <code>test::unit</code>, and for some tests who needs to access to the <code>.hover</code> method, I'm using the Chrome webdriver</p>
  
  <p>At the end of almost every test which need chrome, I have a blank chrome window, that I have to close manually to end my test.</p>
  
  <p>Here is a part of my test helper :</p>
  
  <pre><code>def use_chrome_driver
    Capybara.register_driver :selenium_chrome do |app|
      Capybara::Selenium::Driver.new(app, :browser =&gt; :chrome)
    end
    Capybara.current_driver = :selenium_chrome
  end
  
  def setup
    DatabaseCleaner.start
    Capybara.current_driver = :selenium
  end
  
  def teardown
    Capybara.reset_session!
    Capybara.use_default_driver
    DatabaseCleaner.clean
  end
  </code></pre>
  
  <p>The setup method is overwritten by <code>use_chrome_driver</code> called at the beginning of chrome tests. i.e :</p>
  
  <pre><code>def test_example
    use_chrome_driver
    ...
  end
  </code></pre>
  
  <p>This <code>test_example</code> will never quit if I don't close manually the Chrome browser opened. When I manually quit him, the test is finished and passed with no errors.</p>
  
  <p>So why this Chrome browser window doesn't close automatically every time ? (Sometimes it does close automatically ~15%!)</p>