fix: isolate extension runtime cleanup (#1237)