Pct 697  agent running but down in pct

This block should be at start of function, before doing other work.