def main():
    try:
        _setup()
        return _run_server()
    except __HOLE__ as exit_code:
        sys.exit(exit_code)
    except Exception:
        LOG.exception('(PID=%s) ST2 Auth API quit due to exception.', os.getpid())
        return 1
    finally:
        _teardown()
dataset/ETHPy150Open StackStorm/st2/st2auth/st2auth/cmd/api.py/main