Handle JSON error return. Delete test files.