Added a protection in the dtor. When the tasks is created by default ctor (to access...