Support quit event