Cleanup logging.