Index: /trunk/FACT++/src/StateMachineDimControl.cc
===================================================================
--- /trunk/FACT++/src/StateMachineDimControl.cc	(revision 18166)
+++ /trunk/FACT++/src/StateMachineDimControl.cc	(revision 18167)
@@ -123,7 +123,12 @@
 }
 
-int StateMachineDimControl::StopScript()
-{
-    Info("Stop received.");
+int StateMachineDimControl::StopScript(const EventImp &imp)
+{
+    const string str(imp.GetString());
+
+    string msg("Stop received");
+    msg += str.empty() ? "." : " ["+str+"]";
+
+    Info(msg);
 
     Readline::StopScript();
@@ -529,5 +534,5 @@
 
     AddEvent("STOP", "C")
-        (bind(&StateMachineDimControl::StopScript, this))
+        (bind(&StateMachineDimControl::StopScript, this, placeholders::_1))
         ("Stop a runnning batch script or JavaScript");
 
Index: /trunk/FACT++/src/StateMachineDimControl.h
===================================================================
--- /trunk/FACT++/src/StateMachineDimControl.h	(revision 18166)
+++ /trunk/FACT++/src/StateMachineDimControl.h	(revision 18167)
@@ -47,5 +47,5 @@
 
     int StartScript(const EventImp &imp, const std::string &cmd);
-    int StopScript();
+    int StopScript(const EventImp &imp);
     int InterruptScript(const EventImp &imp);
 
