we're leaving file descriptors open when errors occur.
Fixing leaking file descriptors.
Merge pull request #5 from bcoe/open-fd

Fixed Bug With Leaking File Descriptors