Extract method terminatedScript.
Extract method terminatedScript.

Refactored eval method to extract reusable method for terminating statement strings.

beanshell/beanshell,beanshell/beanshell,beanshell/beanshell