public void Dispose() { try { if (mt != null) { mt.ReleaseMutex(); mt.Close(); mt.Dispose(); mt = null; } } catch{ } if (rwh != null) { rwh.Dispose(); rwh = null; } }