CsvWriter csvWriter = new CsvWriter
try { ... } finally { csvWriter.close(); }