Die on error option  & local variable fix

ADDED: Die on error option
FIXED: main java file for IndexJson had write to json variable in wrong
spot
FIXED: local variable conflict for multiple variables when more than one
elastic comp in a job

(Sorry for lumping these all together)