title: Autofac OnRelease() not being called
body: <p>I have a class, Foo, which is used to configure the container and functions as a factory for another class, Bar, which is used as the entry point for a windows service.  </p>
  
  <p>The Bar class is injected with an instance of Baz which opens a socket connection.  </p>
  
  <p>In Foo, an IBaz is configured with an OnActivated() to open the connection and an OnRelease() to close the connection.</p>
  
  <p>An acceptance test uses Foo to create Bar and validates some expected results.  The problem is that the test never completes because the Baz connection is never getting closed.  This is due to OnRelease() never being called.</p>
  
  <p>My understanding is that once Foo goes out of scope and is garbage collected, the container should invoke the OnRelease() delegate.</p>
  
  <p>Why might this not be happening?</p>