Index: /trunk/src/VBox/HostServices/SharedClipboard/VBoxSharedClipboardSvc.cpp
===================================================================
--- /trunk/src/VBox/HostServices/SharedClipboard/VBoxSharedClipboardSvc.cpp	(revision 81132)
+++ /trunk/src/VBox/HostServices/SharedClipboard/VBoxSharedClipboardSvc.cpp	(revision 81133)
@@ -92,5 +92,5 @@
  *
  * At the moment a transfer is a all-or-nothing operation, e.g. it either
- * completes orfails completely. There might be callbacks in the future
+ * completes or fails completely. There might be callbacks in the future
  * to e.g. skip failing entries.
  *
@@ -1128,4 +1128,16 @@
     ShClSvcImplDisconnect(pClient);
 
+    /* Make sure to send a quit message to the guest so that it can terminate gracefully. */
+    if (pClient->Pending.uType)
+    {
+        if (pClient->Pending.cParms >= 2)
+        {
+            HGCMSvcSetU32(&pClient->Pending.paParms[0], VBOX_SHCL_HOST_MSG_QUIT);
+            HGCMSvcSetU32(&pClient->Pending.paParms[1], 0);
+        }
+        g_pHelpers->pfnCallComplete(pClient->Pending.hHandle, VINF_SUCCESS);
+        pClient->Pending.uType = 0;
+    }
+
     shclSvcClientStateReset(&pClient->State);
     shclSvcClientStateDestroy(&pClient->State);
