After calling any of the `waitfor*` commands in the GUI RPC console, trying to shutdown / `bitcoin-cli stop` will hang `bitcoin-qt`.
{
    LogPrint(BCLog::RPC, "Starting RPC\n");
    g_rpc_running = true;
    g_rpcSignals.Started();
}
void InterruptRPC()
{
    LogPrint(BCLog::RPC, "Interrupting RPC\n");
    
    g_rpc_running = false;
}
void StopRPC()
{
    LogPrint(BCLog::RPC, "Stopping RPC\n");
    WITH_LOCK(g_deadline_timers_mutex, deadlineTimers.clear());
    DeleteAuthCookie();
    g_rpcSignals.Stopped();
}
bool IsRPCRunning()