you can't have a Task.Delay inside the catch block. That's what I had done earlier, and it was throwing a compilation error.