CA-127510: Reworked the logic of differentiating between tasks started b...

...y this instance

of XenCenter and tasks started from outside and cancelling the former when exiting
or disconnecting from the pool.

Signed-off-by: Konstantina Chremmou <konstantina.chremmou@citrix.com>