Taskcompletionsource and closures