Fixed fd leak
Merge pull request #90 from ichizok/fix-fd-leak

Fix fd leak