Close different channels in a socket