protected override void Release() { if (_deviceClient != null) { _deviceClient.Close(); } if (_mediaClient != null) { _mediaClient.Close(); } if (_deviceIoClient != null) { _deviceIoClient.Close(); } base.Release(); }