Seperated agent state from service instance state
Completed Agent Restart functionality