public void Disconnect() { // Unsubscribe and disconnect from the server if (opcuaClient?.Session != null) { opcuaClient.ClientDisconnect(); } }