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

Have reproduced and am currently working on a fix for issue #26.