def main():
    try:
        _setup()
        return _run_worker()
    except __HOLE__ as exit_code:
        sys.exit(exit_code)
    except:
        LOG.exception('(PID=%s) Exporter quit due to exception.', os.getpid())
        return 1
    finally:
        _teardown()
dataset/ETHPy150Open StackStorm/st2/st2exporter/st2exporter/cmd/st2exporter_starter.py/main