clean up the logging