Purge references to cleanup context.