Should the cleanup affect only the files covered by the filter? If understand the fileClenaup() function correctly, it currently removes all the output files, no matter the filter.