public void Dispose() { // disposing nonexistent sync threads raises an exception if (_clientSyncRunning) { cp.DisposeClient(); } }