328 i o error uncloced connection fix

Fixes #328