Fix quit event from esc not being processed