'Stop all services and prepare to exit the process.'

def exit(self):

    exitstate = self.state
    try:
        self.stop()
        self.state = states.EXITING
        self.log('Bus    EXITING')
        self.publish('exit')
        self.log('Bus    EXITED')
    except:
        os._exit(70)
    if (exitstate == states.STARTING):
        os._exit(70)
