diff --git a/app/src/main/java/uk/org/openseizuredetector/MainActivity2.java b/app/src/main/java/uk/org/openseizuredetector/MainActivity2.java
index 9719131..a6bd0c2 100644
--- a/app/src/main/java/uk/org/openseizuredetector/MainActivity2.java
+++ b/app/src/main/java/uk/org/openseizuredetector/MainActivity2.java
@@ -178,7 +178,10 @@ public class MainActivity2 extends AppCompatActivity {
Log.i(TAG, "Stopping Server");
mUtil.unbindFromServer(getApplicationContext(), mConnection);
stopServer();
- //finish();
+ // We exit this activity as a crude way of forcing the fragments to disconnect from the server
+ // so that the server exits properly - otherwise we end up with multiple threads running.
+ // FIXME - tell the threads to unbind from the serer before calling stopServer as an alternative.
+ finish();
} else {
Log.i(TAG, "Starting Server");
startServer();
diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml
index 6fcc495..d2179b0 100644
--- a/app/src/main/res/values/strings.xml
+++ b/app/src/main/res/values/strings.xml
@@ -112,7 +112,7 @@
Basic
Basic Preferences
Accept Alarm
- Start/Stop Server
+ Exit
Install Watch App
Test Alarm Beep
Test Warning Beep
diff --git a/app/src/main/res/xml/general_prefs.xml b/app/src/main/res/xml/general_prefs.xml
index 7e12f63..07ebda0 100644
--- a/app/src/main/res/xml/general_prefs.xml
+++ b/app/src/main/res/xml/general_prefs.xml
@@ -9,7 +9,7 @@
android:defaultValue="Phone"
android:dialogTitle="@string/select_datasource_title" />