Explicitly close files
Explicitly close files

Avoid ResourceWarnings by explicitly closing files ASAP.

Also test open descriptors by IOBase/file instead of by exclusion
(testing for a string)

wavexx/gtabview