def METHOD_NAME():
    # Killing the processes causes pytest to fail because
    # of non zero exit code, so we dont kill the processes
    # when running the tests
    if not Server.flask.testing:
        with open("/tmp/mxcube.pid", "r") as f:
            pid_list = f.read().strip()
            pid_list = pid_list.split(" ")
            pid_list.reverse()
        with open("/tmp/mxcube.pid", "w") as f:
            f.write("")
        for pid in pid_list:
            os.kill(int(pid), signal.SIGKILL)