perf scripting: Avoid leaking the scripting_context variable