title: Robot Framework: Suite Teardown fails when using Close All Browsers
body: <p>I'm using <strong>chromedriver</strong>, <strong>robotframework</strong> with <strong>SeleniumLibrary</strong> and all the tests works fine, but the suite teardown fails. I cant seem to find out why. Help would be greatly appreciated.
  Log shows:  </p>
  
  <blockquote>
    <p>Parent suite teardown failed: BadStatusLine: ''</p>
  </blockquote>
  
  <pre><code>*** Settings ***
  Suite Setup Open Database Connection
  Test Setup  Login
  Suite Teardown   Suite shutdown
  
  *** Test cases ***
  ...
  ...
  
  *** Keywords ***
  Suite shutdown
       Disconnect from Database
       Close All Browsers
  </code></pre>
  
  <p>Installed versions</p>
  
  <ul>
  <li>chromedriver 2.45.615291</li>
  <li>robot framework 3.1.1</li>
  <li>python 2.7.12</li>
  <li>SeleniumLibrary 3.3.1</li>
  <li>Selenium 3.141.0</li>
  </ul>
  
  <p>I logged out what caused the BadStatusLine error, I hope this helps to find the solution</p>
  
  <pre><code>    09:26:28.700    FAIL    BadStatusLine: ''    
      09:26:28.700    DEBUG   Traceback (most recent call last):   
  File "C:\Python27x86\lib\site-packages\SeleniumLibrary\__init__.py", line 372, in run_keyword
          return DynamicCore.run_keyword(self, name, args, kwargs)   
  File "C:\Python27x86\lib\site-packages\SeleniumLibrary\base\robotlibcore.py", line 102, in run_keyword
          return self.keywords[name](*args, **kwargs)   
  File "C:\Python27x86\lib\site-packages\SeleniumLibrary\keywords\browsermanagement.py", line 47, in close_all_browsers
          self.drivers.close_all()  
  File "C:\Python27x86\lib\site-packages\SeleniumLibrary\keywords\webdrivertools.py", line 245, in close_all
          driver.quit()   File "C:\Python27x86\lib\site-packages\selenium\webdriver\chrome\webdriver.py", line 158, in quit
          self.service.stop()   
  File "C:\Python27x86\lib\site-packages\selenium\webdriver\common\service.py", line 151, in stop
          self.send_remote_shutdown_command()   
  File "C:\Python27x86\lib\site-packages\selenium\webdriver\common\service.py", line 127, in send_remote_shutdown_command
          url_request.urlopen("%s/shutdown" % self.service_url)   
  File "C:\Python27x86\lib\urllib2.py", line 154, in urlopen
          return opener.open(url, data, timeout)   File "C:\Python27x86\lib\urllib2.py", line 429, in open
          response = self._open(req, data)   
  File "C:\Python27x86\lib\urllib2.py", line 447, in _open
          '_open', req)   File "C:\Python27x86\lib\urllib2.py", line 407, in _call_chain
          result = func(*args)   
  File "C:\Python27x86\lib\urllib2.py", line 1228, in http_open
          return self.do_open(httplib.HTTPConnection, req)   
  File "C:\Python27x86\lib\urllib2.py", line 1201, in do_open
          r = h.getresponse(buffering=True)   
  File "C:\Python27x86\lib\httplib.py", line 1136, in getresponse
          response.begin()   
  File "C:\Python27x86\lib\httplib.py", line 453, in begin
          version, status, reason = self._read_status()   
  File "C:\Python27x86\lib\httplib.py", line 417, in _read_status
          raise BadStatusLine(line)
  </code></pre>