add close function for one channel