implement closeChannel
support channel recycling