Fixed destructor in HE_Task class.