public void destroy(){
  if (executorService != null) {
    executorService.shutdownNow();
  }
}

public void destroy ( ) { if ( executorService != null ) { executorService . shutdownNow ( ) ; } }
gracefully shuts down the compiler thread .
