cleanup on the logging