protected void onServiceStopped(){
  unregisterReceiver(mBluetoothStateBroadcastReceiver);
  for (  final BleManager<BleManagerCallbacks> manager : mBleManagers.values()) {
    manager.close();
    manager.log(LogContract.Log.Level.INFO,"Service destroyed");
  }
  mBleManagers.clear();
  mManagedDevices.clear();
  mBleManagers=null;
  mManagedDevices=null;
}

protected void onServiceStopped ( ) { unregisterReceiver ( mBluetoothStateBroadcastReceiver ) ; for ( final BleManager < BleManagerCallbacks > manager : mBleManagers . values ( ) ) { manager . close ( ) ; manager . log ( LogContract . Log . Level . INFO , "Service destroyed" ) ; } mBleManagers . clear ( ) ; mManagedDevices . clear ( ) ; mBleManagers = null ; mManagedDevices = null ; }
called when the service has been stopped .
