It has been reported that the task sometimes fails with the following exception:  To prevent this issue, System.Threading.Tasks.Extensions should be added as a dependency to the task.