Die on error option  & local variable fix

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