Messy workaround for 10.13
Messy workaround for 10.13

Can't reliably check for logged out / restart on 10.13, so just go for it. It's imprecise, but it's better than just not working altogether.
aysiu/offset