This line will potentially throw an exception depending on the status of the task.