Refactor Reset logic into a new Reset method on IScriptExecutor