Clean up debugging and logging.