Close output streams properly in CSVDataExportProcess class