Fixed "force quit" bug on Mac.