title: Failed to shut down 1 bean with phase value 2147483647 within timeout of 30000: [org.springframework.jms.config.internalJmsListenerEndpointRegistry]
body: <p>I'm trying to shutdown a Java application which has 1 @JmsListener running.
  It doesn't matter how long I wait, but it will never stop.</p>
  
  <p>It eternally hangs on the doShutdown of DefaultMessageListenerContainer.</p>
  
  <p>The threadump is</p>
  
  <pre><code>"DefaultMessageListenerContainer-1@6759" prio=5 tid=0x51 nid=NA waiting
    java.lang.Thread.State: WAITING
        at java.lang.Object.wait(Object.java:-1)
        at java.lang.Thread.join(Thread.java:1252)
        at java.lang.Thread.join(Thread.java:1326)
        at java.lang.ApplicationShutdownHooks.runHooks(ApplicationShutdownHooks.java:107)
        at java.lang.ApplicationShutdownHooks$1.run(ApplicationShutdownHooks.java:46)
        at java.lang.Shutdown.runHooks(Shutdown.java:123)
        at java.lang.Shutdown.sequence(Shutdown.java:167)
        at java.lang.Shutdown.exit(Shutdown.java:212)
        - locked &lt;0x20a&gt; (a java.lang.Class)
        at java.lang.Runtime.exit(Runtime.java:109)
        at java.lang.System.exit(System.java:971)
        at my.package.MainApplication.stop(MainApplication.java:124)
  </code></pre>
  
  <p>I'm running Spring 4.3.19 and Spring Boot 1.5.16</p>