Modify task_channel_group::erase method

Modify task_channel_group::erase method to return erased channel