CloseChannel functor