agent: expand logging of failed registry calls