Index: /trunk/src/VBox/Main/MachineImpl.cpp
===================================================================
--- /trunk/src/VBox/Main/MachineImpl.cpp	(revision 32999)
+++ /trunk/src/VBox/Main/MachineImpl.cpp	(revision 33000)
@@ -10703,6 +10703,10 @@
 
             default:
+#ifndef DEBUG_sunlover
                 AssertMsgFailedReturn(("%s\n", Global::stringifyMachineState(mData->mMachineState)),
                                       VBOX_E_INVALID_VM_STATE);
+#else
+                return VBOX_E_INVALID_VM_STATE;
+#endif
         }
 
