Fixing Issue #26:  Unexpected EOF when backend connection is closed

Have reproduced and am currently working on a fix for issue #26.
We didn't end up using this, right? Do we also need the above changes passing the `conn` around?