todo list
Retry on failure
Agent can toleate a configurable number of failures (e.g. 3) before giving up
Agent should separate out hostname and label that is received for registration