core: context destroing.