Index: trunk/FACT++/src/StateMachineImp.cc
===================================================================
--- trunk/FACT++/src/StateMachineImp.cc	(revision 11060)
+++ trunk/FACT++/src/StateMachineImp.cc	(revision 11061)
@@ -548,5 +548,8 @@
 
     Out() << ":   " << Time().GetAsStr() << " - Adding command " << evt->GetName();
-    Out() << " (transition to " << GetStateDescription(evt->GetTargetState()) << ")" << endl;
+    if (evt->GetTargetState()>=0)
+        Out() << " (transition to " << GetStateDescription(evt->GetTargetState()) << ")";
+    Out() << endl;
+
 
     fListOfEvents.push_back(evt);
@@ -1045,39 +1048,42 @@
     }
 
-    fRunning = !dummy;
-
-    SetCurrentState(kSM_Ready, "by Run()");
-
-    while (!fExitRequested)
-    {
-        usleep(1);
-        if (dummy)
-            continue;
-
-        // Execute a step in the current state of the state machine
-        if (!HandleNewState(Execute(), "by Execute-command"))
-            break;
-
-        // If the command stack is empty go on with processing in the
-        // current state
-        if (IsQueueEmpty())
-            continue;
-
-        // Pop the next command which arrived from the stack
-        const auto_ptr<Event> cmd(PopEvent());
-
-        if (!HandleEvent(*cmd))
-            break;
-    }
-
-    fRunning = false;
-
     if (!fExitRequested)
     {
-        Fatal("Fatal Error occured... shutting down.");
-        return -1;
-    }
-
-    SetCurrentState(kSM_NotReady, "due to return from Run().");
+        fRunning = !dummy;
+
+        SetCurrentState(kSM_Ready, "by Run()");
+
+        while (!fExitRequested)
+        {
+            usleep(1);
+            if (dummy)
+                continue;
+
+            // Execute a step in the current state of the state machine
+            if (!HandleNewState(Execute(), "by Execute-command"))
+                break;
+
+            // If the command stack is empty go on with processing in the
+            // current state
+            if (IsQueueEmpty())
+                continue;
+
+            // Pop the next command which arrived from the stack
+            const auto_ptr<Event> cmd(PopEvent());
+
+            if (!HandleEvent(*cmd))
+                break;
+        }
+
+        fRunning = false;
+
+        if (!fExitRequested)
+        {
+            Fatal("Fatal Error occured... shutting down.");
+            return -1;
+        }
+
+        SetCurrentState(kSM_NotReady, "due to return from Run().");
+    }
 
     const int exitcode = fExitRequested-1;
