You open the file, but never actually close the file handle.  This should also enclose this around try/catch so we can gracefully handle bad/nonexistent files.