Index: /trunk/FACT++/src/dimctrl.cc
===================================================================
--- /trunk/FACT++/src/dimctrl.cc	(revision 14051)
+++ /trunk/FACT++/src/dimctrl.cc	(revision 14052)
@@ -6,4 +6,6 @@
 #include "MessageDim.h"
 #include "RemoteControl.h"
+
+#include "InterpreterV8.h"
 
 using namespace std;
@@ -96,4 +98,10 @@
     }
 
+    void StopScript()
+    {
+        Readline::StopScript();
+        InterpreterV8::JsStop();
+    }
+
     void commandHandler()
     {
@@ -107,5 +115,5 @@
 
             Debug(msg);
-            Readline::StopScript();
+            StopScript();
         }
 
@@ -262,5 +270,5 @@
     }
 
-    void Stop(int stop=0) { fStop = stop; Readline::StopScript(); }
+    void Stop(int stop=0) { fStop = stop; StopScript(); }
     int Run(bool)
     {
