def main(url, lamson_host, lamson_port, lamson_debug):
    """
    Create, connect, and block on the Lamson worker.
    """
    try:
        worker = LamsonWorker(url=url,
                              lamson_host=lamson_host,
                              lamson_port=lamson_port,
                              lamson_debug=lamson_debug)
        worker.connect()
        worker.run_forever()
    except KeyboardInterrupt:
        worker.close()
Create, connect, and block on the Lamson worker.