using (var mutex = new Mutex(true, mutex_name, out _created_new, security)) {
_mutex_created_event.Set();
_dispose_event.WaitOne();
if (_created_new) {
mutex.ReleaseMutex();
}
}```
![image](https://cloud.githubusercontent.com/assets/13195823/26238161/354c1db4-3c78-11e7-81ed-43fb15b0f1ec.png)