Add extra guard which ends the Connection when eof is detected or the stream already has been closed