remove duplicated line
add test for connection drops during ongoing socket writes
Fix issue #39 / #41 - Handle connection dropped errors during session writes.