title: Selenium headless browser - can't exit without AttributeError-Exception
body: <p>Everything's working fine with the following code:</p>
  
  <pre><code>from selenium import webdriver
  driver = webdriver.PhantomJS(executable_path='/usr/local/bin/phantomjs', service_args=['--ignore-ssl-errors=true', '--ssl-protocol=TLSv1'])
  driver.get('https://myurl.com')
  </code></pre>
  
  <p>Now I am working with this page, everything is working quite fine, until I'm finished and I want to terminate the session with the following command:</p>
  
  <pre><code>driver.quit()
  </code></pre>
  
  <p>After doing this, Python throws this exception:</p>
  
  <pre><code>Traceback (most recent call last):
    File "/home/pi/Public/Python/changedet/changedet.py", line 20, in &lt;module&gt;
      elba.elba(3)
    File "/home/pi/Public/Python/changedet/listener/elba.py", line 18, in __init__
      self.performCheck();
    File "/home/pi/Public/Python/changedet/listener/elba.py", line 70, in performCheck
      driver.quit()
    File "/usr/local/lib/python2.7/dist-packages/selenium/webdriver/phantomjs/webdriver.py", line 76, in quit
      self.service.stop()
    File "/usr/local/lib/python2.7/dist-packages/selenium/webdriver/common/service.py", line 162, in stop
      self.process.terminate()
  AttributeError: 'Popen' object has no attribute 'terminate'
  </code></pre>
  
  <p>I would be more than happy if anybody knows how to get rid of this exception.</p>