Index: /trunk/FACT++/src/Main.h
===================================================================
--- /trunk/FACT++/src/Main.h	(revision 13649)
+++ /trunk/FACT++/src/Main.h	(revision 13650)
@@ -182,8 +182,7 @@
             shell.Execute(*it);
 
-        if (conf.Get<bool>("quit"))
-            shell.Stop();
-
-        shell.Run();                 // Run the shell
+        if (!conf.Get<bool>("quit"))
+            shell.Run();             // Run the shell
+
         io_service.Stop();           // Signal Loop-thread to stop
         // io_service.Close();       // Obsolete, done by the destructor
