ensure notifying an error to the listeners

if a socket is prematurely closed by a peer while expecting a response