context = null;
try {
if ( channel != null && channel.isOpen() ) {
UpHandler handler = channel.getUpHandler();
if ( handler instanceof Muxer ) {
Muxer muxer = (Muxer) handler;
muxer.remove( muxId );
}
else {
if ( channelIsManaged ) {
log.jGroupsDisconnectingAndClosingChannel();
channel.disconnect();