@staticmethod
    def stop_framework (driver):
        status = 0 if driver.run() == mesos_pb2.DRIVER_STOPPED else 1
        driver.stop();
        sys.exit(status)
ensure that the driver process terminates
dataset/ETHPy150Open ceteri/exelixi/src/resource.py/MesosScheduler.stop_framework