Task fixes
This MR fixes task race conditions that can trigger the same task twice. To solve this, the changes remove the task reference from the object that holds them before returning the task.
This MR fixes task race conditions that can trigger the same task twice. To solve this, the changes remove the task reference from the object that holds them before returning the task.