Changed location of file handle close

in AddTagsToSeq