properly flush and close ZipDataSink with the refactored FilteredDataSink.