remember changes in COE so it knows whether to print a message, and (b) once the session has already ended, Warn On Close should shut up. [originally from svn r3102]