I was thinking about this method and talking with Albert. The result of `clearStats()` is a DOMRequest, so it has `onsuccess` and `onerror` callbacks. What we should do here is:

  1. Get interfaces (all OK here)
  2. Ask for `clearStats()` for each of them and store the requests
  3. Attach `onerror` parameter in each request in such a way it could be called if one of the clear operations fails but only once!
  4. Set the `lastDataReset`
  5. Call `onsuccess`

This way we were imitating the former behaviour. But you should change then `resetAll()` in to only provide `resetTelephony` function as first parameter and to provide a simple "log error function" as second.

Note for 3 you need some kind of synchronizing mechanism. You must not call `onerror` when both of them fail but when one of them fail and then call `onerror` just once. Something like:

```javascript
function getOnErrorFor(interface) {
  return function () {
    request1.onerror = undefined;
    request2.onerror = undefined;
    (typeof onerror === 'function') && onerror(interface)
  };
}
request1.onerror = getOnErrorFor('simcard');
request2.onerror = getOnErrorFor('wifi');
```