if (rootCause instanceof ConnectException && "Connection refused".equals(rootCause.getMessage()) && !service.isRunning()) { throw new WebDriverException("The PhantomJS/GhostDriver server has unexpectedly died!", t);
if (rootCause instanceof ConnectException && "Connection refused".equals(rootCause.getMessage()) && !service.isRunning()) { throw new WebDriverException("The PhantomJS/GhostDriver server has unexpectedly died!", t);