Pass new state to agent restart on error.