Fix crash on quit / pause not working

Technically, it'd be better to use an atomic check and set, but it wasn't before and the window should be fairly small anyway.

-[Unknown]