Store when a topic was first set to auto-close and report that amount of time when it closes. And do some refactoring.