Added closing of file for path ops.