@Override public void disconnect() { // Close the channel try { channel.destroy(); } finally { channel = null; // monitor = null; monitorCreated.set(false); channelType = null; channelPut = null; channelPutValueField = null; channelPutCreated.set(false); } }