remove dataDir variable if processing of files failed