@Override
    public void close() {
        try {
            connection.dispose();
        } catch (Exception e) {
            if (!ThrowableUtil.isDisconnectedClientError(e)) {
                LOGGER.error("Failed to close the TCP connection: "
                        + getAddress().getAddress()
                                .getHostAddress(),
                        e);
            }
        }
    }
It is acceptable that the method isn't thread-safe
turms-gateway/src/main/java/im/turms/gateway/access/client/tcp/TcpConnection.java