add debug log for quit event