Clean up logging.