Here if we catch the exception, then the while loop will continue to process other jobIds