restart hopagent at end