Clean-up token processing and logging.