save error files to errors folder