Only remove the file if there are no errors, if so leave it on disk