add a log entry when quitting