async shutdown()

in src/agentmgr.js [240:256]


    async shutdown() {
        this.shuttingDown = true;

        try {
            // make sure we finished creating the backup
            await this.createBackup;

            if (this.agentInstalled) {
                await this.restoreAction();
            }
        } finally {
            if (this.ngrokAgent) {
                await this.ngrokAgent.stop();
                log.debug("ngrok shut down");
            }
        }
    }