public static void add(final Runnable task){
  if (!cb.add(task)) {
    task.run();
  }
}

public static void add ( final Runnable task ) { if ( ! cb . add ( task ) ) { task . run ( ) ; } }
add a task to be performed when graceful shutdown is requested .
