Index: /trunk/BNC/src/orbComp/sp3Comp.cpp
===================================================================
--- /trunk/BNC/src/orbComp/sp3Comp.cpp	(revision 6354)
+++ /trunk/BNC/src/orbComp/sp3Comp.cpp	(revision 6355)
@@ -82,6 +82,5 @@
   }
   if (!_log) {
-    emit finished();
-    return;
+    goto end;
   }
 
@@ -91,6 +90,5 @@
   if (_sp3FileNames.size() != 2) {
     *_log << "ERROR: sp3Comp requires two input SP3 files" << endl;
-    emit finished();
-    return;
+    goto end;
   }
 
@@ -102,15 +100,12 @@
   catch (const string& error) {
     *_log << "ERROR: " << error.c_str() << endl;
-    emit finished();
-    return;
   }
   catch (const char* error) {
     *_log << "ERROR: " << error << endl;
-    emit finished();
-    return;
   }
 
   // Exit (thread)
   // -------------
+ end:
   if (BNC_CORE->mode() != t_bncCore::interactive) {
     qApp->exit(0);
