Fix foreach block for vcf ingest

foreach block for writing out vcf records seemed to accidentally include cleanup code as well.   Simply moved it up to ensure cleanup code called once at the end of processing all the lines.