feat-service agentrestart fails gracefully...

...instead of nasty IndexError with backtrace.