public void EndMessageForwarding() { lock (this) { if (this.queueMonitor != null) { queueMonitor.Stop(); this.queueMonitor = null; } } }