@Override public void onDestroy() { disconnectExit(); super.onDestroy(); serviceThread.quit(); if (Preferences.logging) Log.d(MetaWatch.TAG, "MetaWatchService.onDestroy()"); PreferenceManager.getDefaultSharedPreferences(context) .unregisterOnSharedPreferenceChangeListener(prefChangeListener); Monitors.stop(this); removeNotification(); notifyClients(); mClients.clear(); }