public void destroy(){
  logger.info("Shutting donw metrics DB");
  this.stopped=true;
}

public void destroy ( ) { logger . info ( "Shutting donw metrics DB" ) ; this . stopped = true ; }
just set thread to stop
