Catching runtime exception when getting job status