I'm still confused by this: why set `wants_to_quit`?  I don't see what we gain by setting that.