Fixed possible file descriptor leak.
Merge pull request #14 from belobrov-andrey/fd_leak_fix

Fixed possible file descriptor leak.