adding logic to make sure the agents continue to run even if the terracotta nodes are no longer accessible
Also added a state reporting metric to understand what state the server is in