While clean up a temporary directory deleteRecursively can't delete csv files because they are used by another process.