RubyScript: added termination of ScriptingContainer.
Merge branch 'master' into ruby