cleanup the logging