code: private void fail(BeanError error) {
          Log.e(TAG, "OAD Error: " + error.toString());
          if (uploadInProgress()) {
              oadListener.error(error);
              reset();
          }
      }
docs: Stop the firmware upload and alert the OADListener
  
  @param error The error to be returned to the user