how to abort ansible execution in callback

hi all,

I want to abort entire ansible execution in a callback file.
how could I implement that?

The below code doesn’t work:

def runner_on_failed(self, host, res, ignore_errors=False):
sys.exit(1)

thanks a lot in advance.