add close channel method