PhantomJs Driver throwing error with quit method using Jmeter

When ever I am calling driver.quit() throwing error by jmeter webdriver.
It is happening with chrome driver too so there is nothing related to any specific driver.

I am also using latest version of almost everything. selenium webdriver, server, jmeter

@Test
    public void sample() {
            System.setProperty("phantomjs.binary.path","D://Workspace//JmeterWebdriverProject//src//lib//phantomjs//phantomjs.exe");
            DesiredCapabilities capabilities = null;
            ArrayList<String> cliArgsCap = new ArrayList<String>();
            capabilities = DesiredCapabilities.phantomjs();
            cliArgsCap.add("--web-security=false");
            cliArgsCap.add("--ssl-protocol=any");
            cliArgsCap.add("--ignore-ssl-errors=true");
            capabilities.setCapability("takesScreenshot", true);
            capabilities.setJavascriptEnabled(true);
            capabilities.setCapability(
                PhantomJSDriverService.PHANTOMJS_CLI_ARGS, cliArgsCap);
            capabilities.setCapability(
                PhantomJSDriverService.PHANTOMJS_GHOSTDRIVER_CLI_ARGS,
                    new String[] { "--logLevel=2" });
            driver = new PhantomJSDriver(capabilities);

            driver.get("https://www.google.co.in/");

            driver.manage().window().maximize();
            driver.manage().timeouts().implicitlyWait(60, TimeUnit.SECONDS);
            String title = driver.getTitle();

            System.out.println("Page title :- "+title);


            //driver.quit();
    }

    @After
    public void tearDown() {
        System.out.println("I am in headless");
        driver.quit();
    }

Here if I am calling quit either in tearDown or test method jmeter throwing error.

With Quit :-

Without Quit :-

Please let me know If I am missing anything.
Any help will be appreciated