Improved cancelling of tasks groups technique