Fix a but in service monitor failure

Current code will cause an immediate monitor task restart before node.py cleanup run state.