fix mdns server stop fail