public static void close() { ZigBee zb = getLocalNoCreate(); if (zb != null) { try { zb.exitAPIMode(); zb.closeSerial(); } catch (Exception e) { } ; } }