title: Selenium initiated ChromeDriver keeps running in background
body: <p>I am not able to completely delete a project, because the chromedriver instance is running in the background, even when there is no code is being executed.
  Please see the below image.
  <a href="https://i.stack.imgur.com/bt1Tb.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/bt1Tb.png" alt="Task Manager Process View" /></a></p>
  <p>The error I get while the project deletion is:<a href="https://i.stack.imgur.com/pKIO0.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/pKIO0.png" alt="Eclipse error while project deletion" /></a></p>
  <p>Take the below code for instance:</p>
  <pre><code>import java.util.concurrent.TimeUnit;
  
  import org.openqa.selenium.WebDriver;
  import org.openqa.selenium.chrome.ChromeDriver;
  
  public class Test {
  
      public static void main(String[] args) throws Exception {
  
          String url = &quot;https://www.google.com&quot;;
          System.setProperty(&quot;webdriver.chrome.driver&quot;, &quot;src/driver/chromedriver.exe&quot;);
          WebDriver driver = new ChromeDriver();
          driver.manage().window().maximize();
          driver.manage().timeouts().implicitlyWait(30, TimeUnit.SECONDS);
          driver.get(url);
          System.out.println(driver.getTitle());
  
      }
  }
  </code></pre>
  <p>Try running this code, say 5 times, and there will be 5 background running instances. Tried restarting Eclipse, with no luck.</p>
  <p>I understand this is happening because I am not writing this line:</p>
  <pre><code>driver.close();
  </code></pre>
  <p>But normally, when the main-thread dies, all supporting running instances should die with it.</p>
  <p>Is this a known issue, or I am scripting something wrong.</p>
  <p>Thanks in advance.</p>