title: Unsubscribing events before shutdown of self hosted endpoint
body: <p>I have a bunch of wpf test clients which are self hosted nservicebus endpoints. The test clients are subscribing to several events of another endpoint at startup. Before the test clients are shutting down, I want their subscriptions to be removed. The first idea I came up with, was to use <code>IWantToRunWhenBusStartsAndStops.Stop()</code> where I unsubscribe all events.</p>
  
  <p>The problem with this solution is that when nservicebus invokes <code>IWantToRunWhenBusStartsAndStops.Stop()</code> some objects have already been disposed. e.g. when nservicebus tries to create an object of TransportDefinition to decide if the endpoint has support for centralized pub\sub.</p>
  
  <p>I'm not sure, if the problem only occurs in a self hosted scenario. Are there any suggestions?</p>