fix too many files open problem where check wasn't closing fd
file open changes merge
Merge branch 'master' of https://github.com/mattjr/structured