TCP server: when using the trace option ("-trace"), the trace output contained unnecessary stack traces when stopping the server.