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

Have reproduced and am currently working on a fix for issue #26.
Hmmm I'm curious as to how the tests passed without refreshing the connection.