title: AWS InterruptedException: sleep interrupted com.amazonaws.http.IdleConnectionReaper
body: <p>we have a web application use AWS (Amazone api), in the coreConfiguration class we create a awsApi bean with predestroy method, the code for coreConfiguration is:</p>
  <pre><code>@Bean(destroyMethod = &quot;destroy&quot;)
      public IGridStorageManager awsApi() {
  .....
  }
  </code></pre>
  <p>in awsApi class we have detroy methode, the code is:</p>
  <pre><code>@Override
      @PreDestroy
      public void destroy() {
          if (clientS3 != null) {
              clientS3.shutdown();
          }
      }
  </code></pre>
  <p>My problem is sometime in PROD when i use the API i see thos logs:</p>
  <pre><code>2020-08-03 11:27:00.090 DEBUG 25172 --- [java-sdk-http-connection-reaper] com.amazonaws.http.IdleConnectionReaper : Reaper thread:
  java.lang.InterruptedException: sleep interrupted
          at java.lang.Thread.sleep(Native Method)
          at com.amazonaws.http.IdleConnectionReaper.run(IdleConnectionReaper.java:188)
  </code></pre>
  <p>I read that this exception can cause memory leak, i found that we need to use a shutdown() method, the problem is i aleardy use <code>@PreDestroy</code> method with shutdown method, why i have those exceptions ?</p>
  <p>Can you help me ?</p>
  <p>Thanks</p>