Fix file handle leak in Shaper3ACMatching