Checking for job process status inside a map task attempt when it's not ...

...the first attempt
Probably best to capture only the kinds of exceptions that can be thrown by the code you run.
Let's make sure that we don't catch other exceptions such as InterruptedException, or OOME's.