added the deletion of a task when a qtask is destructed