Here in the old code, if this line throws an exception the surrounding while loop will terminate and could leave some jobIds unsubmitted to the commandExecutor