title: Trying to close portable browser via selenium
body: <p><strong>I am trying to close portable browser via selenium</strong></p>
  <p>I passed <code>--remote-debugging-port=9222</code> because if I do not pass it then the program is stuck in object creation of <code>webdriver.Chrome()</code>. It will open the portable browser but not load the URL.</p>
  <p>But after the URL is open I want to close the browser but <code>driver.quit()</code> it is not working for me. I have tried some other methods for close the browser but they do not work as well.</p>
  <p>I want to close the specific instance of the browser which is opened by this program not other opened instances of the browser.</p>
  <pre><code>from selenium import webdriver
  from selenium.webdriver.chrome.options import Options
  chrome_options = Options()
  chrome_options.binary_location = 'C:/Portable/GoogleChromePortable/GoogleChromePortable.exe'
  chrome_options.add_argument(&quot;--remote-debugging-port=9222&quot;)
  chrome_options.add_argument(&quot;--incognito&quot;)
  chrome_options.add_argument(&quot;--profile-directory=Person 1&quot;)
  driver = webdriver.Chrome(options=chrome_options,executable_path='C:/Portabl/chromedriver_win32/chromedriver.exe')
  url = &quot;https://www.google.com/&quot;
  driver.get(url)
  driver.quit()
  </code></pre>
  <p>I am using:</p>
  <pre><code>selenium 3.141.0, windows 10, python 3.8.0, portable chrome version 93.0.4577.63 (32-bit)
  </code></pre>