def stop_selenium_server(selenium_server_process):

    try:
        selenium_server_process.terminate()
        return selenium_server_process.poll() == 143
    except Exception, details:
        raise Exception("Cannot kill selenium process, details: " + details)
Kills the selenium server.  We are expecting an error 143
dataset/ETHPy150Open mdmintz/SeleniumBase/seleniumbase/core/selenium_launcher.py/stop_selenium_server