issue: #42820 - fix that ro pulsar cannot be closed when upgrading milvus. Signed-off-by: chyezh <chyezh@outlook.com>