Modified Exception hanlding in GridJobMain