Log an error when json encoding of peers.json fails.