o.c.scan: Support wait-for-completion in LoopCommand