close the file on termcap loading
Merge pull request #2 from kikuchan/master

close the file on termcap loading