Ensure that we close the connection if we got an error back
Merge pull request #16 from eric/close-connection-on-any-error

Ensure that we close the connection if we got an error back