create an error reason file when moving a file to the error directory

- deletes the reason files on startup