public void shutdown(){
  running=false;
  if (networkThreads != null) {
    for (    NetworkThread n : networkThreads) {
      n.stopped=true;
    }
  }
  networkThreads=null;
synchronized (LOCK) {
    LOCK.notifyAll();
  }
}

public void shutdown ( ) { running = false ; if ( networkThreads != null ) { for ( NetworkThread n : networkThreads ) { n . stopped = true ; } } networkThreads = null ; synchronized ( LOCK ) { LOCK . notifyAll ( ) ; } }
shuts down the network thread , this will trigger failures if you have network requests
