fix null pointer exception of channel.disconnect when set password