public boolean destroyClient(){
  try {
    Thread.sleep(100);
  }
 catch (  InterruptedException ie) {
  }
  try {
    wmqttClient.disconnect();
    wmqttClient=null;
  }
 catch (  MqttException e) {
  }
  return true;
}

public boolean destroyClient ( ) { try { Thread . sleep ( 100 ) ; } catch ( InterruptedException ie ) { } try { wmqttClient . disconnect ( ) ; wmqttClient = null ; } catch ( MqttException e ) { } return true ; }
destroyclient terminates all threads running in the wmqtt implementation . before a new connection can be made a new instance of the mqttclient class must be created .
