def async_loop_exception_handler(_, _2) -> None:
    'Handle all exception inside the core loop.'
    nonlocal exception
    exception = True
Handle all exception inside the core loop.
def async_loop_exception_handler(_, _2) -> None:
    
    nonlocal exception
    exception = True