Replaced time.Sleep polling with signal handling to block on main.