title: Java 8 and lambdas in shutdown hook
body: <p>Sonar mentioned, that this java code should be used with lambda, but I have never used lamdas and have no idea how to use it. Can someone point me to the correct version of this code:?</p>
  
  <pre><code>Runtime.getRuntime().addShutdownHook(new Thread(new Runnable() {
  
      @Override
      public void run() {
          closeable.close();
          logger.info("Close closeable.");
          executorPool.shutdown();
          logger.info("Shutdown executorPool");
      }
  }));
  </code></pre>