Simplified close logic on JChannelProvider.