Catch all errors in NashornScriptDemo