shutdown() {
        return new Promise((resolve, reject) => {
            Logger.debug("NetworkAdvertisementManager shutdown in progress...");
            clearTimeout(this.networkStateCheckTimeout);

            if (this.ssdpServer) {
                try {
                    this.ssdpServer.stop();
                } catch (err) {
                    Logger.warn("Error while stopping SSDP Server", err);
                }
            }

            if (this.bonjourServer) {
                this.bonjourServer.unpublishAll(() => {
                    this.bonjourServer.destroy();

                    Logger.debug("NetworkAdvertisementManager shutdown done");
                    resolve();
                });
            } else {
                Logger.debug("NetworkAdvertisementManager shutdown done");

                resolve();
            }
        });
    }
Shutdown NetworkAdvertisementManager

@public
@returns {Promise<void>}