Index: /trunk/src/VBox/Main/VirtualBoxImpl.cpp
===================================================================
--- /trunk/src/VBox/Main/VirtualBoxImpl.cpp	(revision 30069)
+++ /trunk/src/VBox/Main/VirtualBoxImpl.cpp	(revision 30070)
@@ -1350,16 +1350,14 @@
     {
         ComObjPtr<Machine> &pMachine2 = *it;
-        AutoLimitedCaller machCaller(pMachine2);
-        AssertComRC(machCaller.rc());
-
+        AutoCaller machCaller(pMachine2);
         /* skip inaccessible machines */
-        if (machCaller.state() == Machine::Ready)
-        {
-            AutoReadLock machLock(pMachine2 COMMA_LOCKVAL_SRC_POS);
-            if (pMachine2->getName() == aName)
-            {
-                pMachineFound = pMachine2;
-                break;
-            }
+        if (FAILED(machCaller.rc()))
+            continue;
+
+        AutoReadLock machLock(pMachine2 COMMA_LOCKVAL_SRC_POS);
+        if (pMachine2->getName() == aName)
+        {
+            pMachineFound = pMachine2;
+            break;
         }
     }
@@ -2922,7 +2920,8 @@
         {
             ComObjPtr<Machine> pMachine2 = *it;
-            /* sanity */
-            AutoLimitedCaller machCaller(pMachine2);
-            AssertComRC(machCaller.rc());
+            AutoCaller machCaller(pMachine2);
+            /* skip inaccessible machines */
+            if (FAILED(machCaller.rc()))
+                continue;
 
             if (pMachine2->getId() == aId)
@@ -2937,7 +2936,7 @@
 
     if (aSetError && FAILED(rc))
-        setError(VBOX_E_OBJECT_NOT_FOUND,
-                 tr("Could not find a registered machine with UUID {%RTuuid}"),
-                 aId.raw());
+        rc = setError(rc,
+                      tr("Could not find a registered machine with UUID {%RTuuid}"),
+                      aId.raw());
 
     return rc;
