class Selenium::WebDriver::ServiceManager

def stop

def stop
  return unless @shutdown_supported
  return if process_exited?
  stop_server
  @process.poll_for_exit STOP_TIMEOUT
rescue ChildProcess::TimeoutError, Errno::ECONNREFUSED
  nil # noop
ensure
  stop_process
end