Index: /trunk/src/VBox/Main/src-client/GuestProcessImpl.cpp
===================================================================
--- /trunk/src/VBox/Main/src-client/GuestProcessImpl.cpp	(revision 71652)
+++ /trunk/src/VBox/Main/src-client/GuestProcessImpl.cpp	(revision 71653)
@@ -2001,15 +2001,12 @@
 void GuestProcessTool::uninit(void)
 {
-    if (!pProcess.isNull())
-    {
-        /* Terminate (and unregister) process. */
-        pProcess->uninit();
-
-        /* Release reference. */
-        pProcess.setNull();
-    }
-
-    if (pSession)
-        pSession.setNull();
+    /* Make sure the process is terminated and unregistered from the guest session. */
+    int rcGuestIgnored;
+    int rc2 = terminate(30 * 1000 /* 30s timeout */, &rcGuestIgnored);
+    AssertRC(rc2);
+
+    /* Release references. */
+    pProcess.setNull();
+    pSession.setNull();
 }
 
