RubyScript: added termination of ScriptingContainer.