Properly shut down instances of the ScriptInterpreter class.