trying to fix memory leak in calvad manual map reduce script

minor edits to the collation script to reduce chance that I leak a
reference.