module Selenium::WebDriver::Platform

def exit_hook

def exit_hook
  pid = Process.pid
  at_exit { yield if Process.pid == pid }
end