public void Dispose() { Logger.Info(""); IAsyncResult rtspCompletion = rtspClient.Stop().WithoutException(Logger); WaitHandle.WaitAll(new[] { rtspCompletion.AsyncWaitHandle }); rtspClient.Dispose(); demuxerController.Dispose(); Logger.Info("Done"); }