public void stop(){
  write.lock();
  try {
    sorted.clear();
    for (    Route route : routes.values()) {
      route.destroy();
    }
    routes.clear();
  }
  finally {
    write.unlock();
  }
}

public void stop ( ) { write . lock ( ) ; try { sorted . clear ( ) ; for ( Route route : routes . values ( ) ) { route . destroy ( ) ; } routes . clear ( ) ; } finally { write . unlock ( ) ; } }
stops this handler , shutting down and clearing all the managed routes .
