after running encoder on the whole json
write errors file