refs #1489: close file handle when done