unitigs: open and close unitig file

Link: https://github.com/GeneAssembly/biosal/issues/652
Signed-off-by: Sébastien Boisvert <boisvert@anl.gov>