Clean up the logging