<!-- If you need to report a security issue please visit https://github.com/apache/dubbo/security/policy -->

- [ ] I have searched the [issues](https://github.com/apache/dubbo/issues) of this repository and believe that this is not a duplicate.

### Environment

* Dubbo version: 3.0.9
* Operating System version: xxx
* Java version: xxx

### Steps to reproduce this issue

1. close registry : `<dubbo:registry id="registry1" address="N/A"/>`
2. start application 
3. telnet 127.0.0.1 22222

Pls. provide [GitHub address] to reproduce this issue.

### Expected Behavior

connect success.

### Actual Behavior

telnet: connect to address 127.0.0.1: Connection refused


public int getDefaultPort() {
        return protocol.getDefaultPort();
    }
    @Override
    public <T> Exporter<T> export(Invoker<T> invoker) throws RpcException {
        if (UrlUtils.isRegistry(invoker.getUrl())) {
            startQosServer(invoker.getUrl());
            return protocol.export(invoker);
        }
        return protocol.export(invoker);
    }
    @Override
    public <T> Invoker<T> refer(Class<T> type, URL url) throws RpcException {
        if (UrlUtils.isRegistry(url)) {
            startQosServer(url);
            return protocol.refer(type, url);
        }
        return protocol.refer(type, url);
    }
    @Override
    public void destroy() {
        protocol.destroy();
        stopServer();
    }
    @Override
    public List<ProtocolServer> getServers() {
        return protocol.getServers();
    }
    private void startQosServer(URL url) {
        try {