docs: private void handleScriptException(ScriptWrapper script, Writer writer, Exception exception) {
  		Exception cause = exception;
  		if (cause instanceof ScriptException && cause.getCause() instanceof Exception) {
  			// Dereference one level
  			cause = (Exception) cause.getCause();
  		}
  		try {
  			writer.append(cause.toString());
  		} catch (IOException ignore) {
  			logger.error(cause.getMessage(), cause);
  		}
  		this.setError(script, cause);
  		this.setEnabled(script, false);
  	}