code: protected DestroyableManager configureManager(final DestroyableManager manager) {
          bind(DestroyableManager.class).toInstance(manager);
          // if logic will not call destroy at least it will be called before jvm shutdown
          Runtime.getRuntime().addShutdownHook(new Thread(manager));
          return manager;
      }
docs: Registers destroyable manager in injector and adds shutdown hook to process destroy on jvm shutdown.
  
  @param manager destroyable manager instance
  @return manager instance