@staticmethod
def stop():
    'EXITs all Ahsms and stops the event loop.\n        '
    if Framework._tm_event_handle:
        Framework._tm_event_handle.cancel()
        Framework._tm_event_handle = None
    for act in Framework._ahsm_registry:
        Framework.post(Event.EXIT, act)
    Framework.run()
    Framework._event_loop.stop()
    Spy.on_framework_stop()
EXITs all Ahsms and stops the event loop.
@staticmethod
def stop():
    '\n        '
    if Framework._tm_event_handle:
        Framework._tm_event_handle.cancel()
        Framework._tm_event_handle = None
    for act in Framework._ahsm_registry:
        Framework.post(Event.EXIT, act)
    Framework.run()
    Framework._event_loop.stop()
    Spy.on_framework_stop()