Task/File/Csv/CsvSplitterTask.php
public function finalize(ProcessState $state)
    {
        if ($this->csv instanceof CsvResource) {
            $this->csv->close();
            $this->csv = null;
        }
    }
public function finalize(ProcessState $state)
    {
        if ($this->csv instanceof CsvResource) {
            $this->csv->close();
            $this->csv = null;
        }
    }
@param ProcessState $state

@throws \Symfony\Component\Filesystem\Exception\IOException