Small fix for the quit event.