Don't calculate task duration if the task failed to start.