When calling Server.Close(), it will always fail, since it tries to close the TLS listener and then the TCP listener. However, the TLS listener wraps the TCP listener, and when the TLS listener is closed, it also automatically closes the underlying TCP listener. Thus, Stop will always return an error when trying to close the TCP listener.
When calling Server.Close(), it will always fail, since it tries to close the TLS listener and then the TCP listener. However, the TLS listener wraps the TCP listener, and when the TLS listener is closed, it also automatically closes the underlying TCP listener. Thus, Stop will always return an error when trying to close the TCP listener.