class Selenium::Server

def stop

def stop
  stop_process if @process
  poll_for_shutdown
  @log_file&.close
end