Fix crash on quit / pause not working

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