Refactor sync deletion of temp files.
Clean old files on next start.