title: Jersey 2.3 not invoking HK2 service locator shutdown when servlet container is shut down
body: <p>Question: Is there a proper way to ensure that HK2 shuts down with Jersey 2; if not, would this be considered a bug?</p>
  
  <p>Using jersey-server 2.3.1, I've noticed that HK2 <code>@PreDestroy</code> methods on managed singletons and <code>dispose()</code> methods on <code>Factory&lt;T&gt;</code> implementations are not being invoked.  Doing a bit of poking around, I see that <code>ConfigHelper</code> defines a lifecycle listener that invokes <code>preDestroy()</code> on the service locator, but nothing more.  This gets invoked from the the Jersey <code>ServletContainer</code> on both <code>shutdown()</code> and <code>reload()</code>, but nothing further is done with the service locator in terms of shutdown.  </p>
  
  <p>I've looked through <code>ServletContainer</code>, but there doesn't seem to be a way of accessing the HK2 service locator through any public or protected APIs.  </p>