tcp: avoid regrabing error node in input and output