title: IDisposable Singleton with StructureMap 4 & NestedContainer
body: <p>I'm looking to register an EasyNetQ's <code>IBus</code> which implements <code>IDisposable</code> as a singleton with StructureMap.<br>
  The issue is when using nested container, the instance is disposed with the container, thus leaving me with a singleton instance being disposed for every other containers.</p>
  
  <pre><code>For&lt;IBus&gt;()
      .Use(c =&gt; BusBuilder.CreateMessageBus())
      .Singleton();
  </code></pre>
  
  <p><code>ContainerScoped</code> is not an option here as I need that is kept alive during all the application lifespan.</p>
  
  <p>How do I prevent StructureMap from disposing this instance with nested containers ? How do I tell it to dispose the instance only with the root container ?</p>