Properly handle :func:`sys.audit` failures in :func:`sys.set_asyncgen_hooks`. Based on patch by Zackery Spytz.