private async void disconnectFromIoTSuite() { if (deviceClient != null) { try { await deviceClient.CloseAsync(); deviceClient = null; } catch { Debug.Write("Error while trying close the IoT Hub connection"); } } } }