Stop IDLE when exiting