@Override
 public void shutdown(final boolean waitForJobsToComplete) {
   nexusExecutorService.shutdown();
   if (waitForJobsToComplete) {
     try {
       nexusExecutorService.awaitTermination(5L, TimeUnit.SECONDS);
     } catch (InterruptedException e) {
       throw Throwables.propagate(e);
     }
   }
 }