gh-186 fix for issue
gh-186 Make sure Scala interpreter is closed after using it