Fix deadlock on POST execution: calling task.Result before task completion should be avoided