Stops the scheduler driver.

        If the 'failover' flag is set to False then it is expected that this
        framework will never reconnect to Mesos and all of its executors and
        tasks can be terminated.  Otherwise, all executors and tasks will
        remain running (for some framework specific failover timeout) allowing
        the scheduler to reconnect (possibly in the same process, or from a
        different process, for example, on a different machine.)

def stop(self, failover=False):
        """Stops the scheduler driver.

        If the 'failover' flag is set to False then it is expected that this
        framework will never reconnect to Mesos and all of its executors and
        tasks can be terminated.  Otherwise, all executors and tasks will
        remain running (for some framework specific failover timeout) allowing
        the scheduler to reconnect (possibly in the same process, or from a
        different process, for example, on a different machine.)
        """
        logging.info('Stops Scheduler Driver')
        return self.driver.stop(failover)