Modified Exception handling GridJobMain