Fix tcp errors ignored