[java] don't abandon driver
@@ -344,6 +344,7 @@ WebDriver getLocalDriver() {
WebDriver localDriver = first.get().get();
if (localDriver != null && this.useCustomConfig) {
+ localDriver.quit();
throw new IllegalArgumentException("ClientConfig instances do not work for Local Drivers");
}
