Plug possible memory leak when aborting connection in case of read error