closeable csv reader/writer