https://travis-ci.org/github/MarcoFalke/btc_nightly/jobs/680655419#L412
{
    static const std::string RESULT{PACKAGE_NAME " stopping"};
    
    
    
    
    if (jsonRequest.fHelp || jsonRequest.params.size() > 1)
        throw std::runtime_error(
            RPCHelpMan{"stop",
                "\nRequest a graceful shutdown of " PACKAGE_NAME ".",
                {},
                RPCResult{RPCResult::Type::STR, "", "A string with the content '" + RESULT + "'"},
                RPCExamples{""},
            }.ToString());
    
    
    StartShutdown();
    if (jsonRequest.params[0].isNum()) {
        UninterruptibleSleep(std::chrono::milliseconds{jsonRequest.params[0].get_int()});
    }
    return RESULT;
}
static UniValue uptime(const JSONRPCRequest& jsonRequest)