public synchronized void updateDevice(AndroidDevice device) throws AndroidDeviceException {
    boolean deviceRemoved = false;
    for (DeviceTargetPlatform targetPlatform : androidDevices.keySet()) {
      List<AndroidDevice> platformDevices = androidDevices.get(targetPlatform);
      // Attempt to remove the device from this target platform;
      deviceRemoved |= platformDevices.remove(device);
    }

    if (deviceRemoved) {
      addDeviceToStore(device);
    } else {
      log.warning("Attempted to update device which did could not be found in the device store");
    }
  }
After a test session a device should be released. That means id will be removed from the list
of devices in use and in case of an emulator it will be stopped.

@param device The device to release
@see {@link #findAndroidDevice(SelendroidCapabilities)}
selendroid-standalone/src/main/java/io/selendroid/standalone/server/model/DeviceStore.java