anchor.diff:                  {error, Reason} ->
                       ?Debug("TCP error: ~p~n", [Reason]),
                       case Reason of
  -                        closed -> close(RPState);
  -                        _      -> ok
  +                        closed -> ok;
  +                        _      -> close(RPState)
                       end,
                       outXXX(500, Arg)
               end
  
positive.code:                 {error, Reason} ->
                      ?Debug("TCP error: ~p~n", [Reason]),
                      case Reason of
                          closed -> close(RPState);
                          _      -> ok
                      end,
                      outXXX(500, Arg)
              end;
  
negative.code:                 {error, Reason} ->
                      ?Debug("TCP error: ~p~n", [Reason]),
                      case Reason of
                          closed -> ok;
                          _      -> close(RPState)
                      end,
                      outXXX(500, Arg)
              end;
  