<!-- This issue tracker is only for technical issues related to Bitcoin Core.

General bitcoin questions and/or support requests are best directed to the Bitcoin StackExchange at https://bitcoin.stackexchange.com.

For reporting security issues, please read instructions at https://bitcoincore.org/en/contact/.

If the node is "stuck" during sync or giving "block checksum mismatch" errors, please ensure your hardware is stable by running memtest and observe CPU temperature with a load-test tool such as linpack before creating an issue! -->

# Describe the issue
Unchecking the "Start Bitcoin Core on System login" causes 0.17.1 to crash on Mac OS.
# What behavior did you expect?
To continue running and not start on reboot.
# What was the actual behavior (provide screenshots if the issue is GUI-related)? 
See video: 
https://twitter.com/_drgo/status/1083409084655665152?s=21
# How reliably can you reproduce the issue, what are the steps to do so? 
Reliably. See above.
# What version of Bitcoin Core are you using, where did you get it (website, self-compiled, etc)? 
0.17.1; downloaded from link on Bitcoin.org; shasum -a 256 matched.
# What type of machine are you observing the error on (OS/CPU and disk type)? 
Mac Mini 2.6 ghz dual core i5, Mac OS Mojave 10.14.2
<!-- For the GUI-related issue on Linux provide names and versions of a distro, a desktop environment and a graphical shell (if relevant). -->

<!-- Any extra information that might be useful in the debugging process. -->
<!--- This is normally the contents of a `debug.log` or `config.log` file. Raw text or a link to a pastebin type site are preferred. -->
# Debug.log 
Doesn't seem to informative...

https://pastebin.com/qckAe3J1
{
    return !(checkPoint(QPoint(0, 0), w)
        && checkPoint(QPoint(w->width() - 1, 0), w)
        && checkPoint(QPoint(0, w->height() - 1), w)
        && checkPoint(QPoint(w->width() - 1, w->height() - 1), w)
        && checkPoint(QPoint(w->width() / 2, w->height() / 2), w));
}
void bringToFront(QWidget* w)
{
#ifdef Q_OS_MAC
    
    
    id app = objc_msgSend((id) objc_getClass("NSApplication"), sel_registerName("sharedApplication"));
    objc_msgSend(app, sel_registerName("activateIgnoringOtherApps:"), YES);
#endif
    if (w) {
        
        if (w->isMinimized()) {
            w->showNormal();
        } else {
            w->show();
        }
        w->activateWindow();
        w->raise();
    }
}
void openDebugLogfile()