Don't emit "complete" until all tasks have actually completed.