Index: /trunk/src/VBox/Frontends/VirtualBox/src/guestctrl/UIGuestControlFileManager.cpp
===================================================================
--- /trunk/src/VBox/Frontends/VirtualBox/src/guestctrl/UIGuestControlFileManager.cpp	(revision 75951)
+++ /trunk/src/VBox/Frontends/VirtualBox/src/guestctrl/UIGuestControlFileManager.cpp	(revision 75952)
@@ -62,5 +62,4 @@
 #endif /* !VBOX_WITH_PRECOMPILED_HEADERS */
 
-#define TEST_COPY
 
 /*********************************************************************************************************************************
@@ -163,4 +162,8 @@
     if (m_comGuestSession.isOk() && m_pQtSessionListener && m_comSessionListener.isOk())
         cleanupListener(m_pQtSessionListener, m_comSessionListener, m_comGuestSession.GetEventSource());
+
+    if (m_comGuestSession.isOk())
+        m_comGuestSession.Close();
+
     saveOptions();
     UIGuestControlFileManagerOptions::destroy();
@@ -593,7 +596,5 @@
     if (m_pVerticalToolBar)
         m_pVerticalToolBar->setEnabled(false);
-
-}
-
+}
 
 bool UIGuestControlFileManager::createSession(const QString& strUserName, const QString& strPassword,
