public void RestartBackend() { window.Hide(); window = null; rpcRoot = null; nodeFoo.Dispose(); nodeFoo = null; trayIcon.Dispose(); trayIcon = null; StartUI(); }