Handle errors in JSON/XML dumps for CC