/// <summary>
 /// Closes and releases all internal resources.
 /// </summary>
 public void Dispose()
 {
     //There is a bug here somewhere - note that when called this should close and cleanup _everything_
     //however, if you do not explicitly call Cluster.CloseBucket(bucket) in certain cases the HttpStreamingProvider
     //listener thread will hang indefinitly if Cluster.Dispose() is called. This is a definite bug that needs to be
     //resolved before developer preview.
     if (_clusterManager != null)
     {
         _clusterManager.Dispose();
     }
 }