CZI: fix a couple of instrument linkage problems
Make sure that file handles really get closed