@Override
  protected void onStop() {
    super.onStop();
    if (remotePlugin == null) {
      return;
    }
    PluginActivityCallback caller = remotePlugin.getControl();
    if (caller != null) {

      {
        try {
          caller.callOnStop();
          LCallbackManager.callAllOnStop();
        } catch (Exception e) {
          processError(e);
        }
      }
    }
  }