Handle TaskCanceledException