private synchronized void stopJob(boolean needToSendResult, JobInvocation jobInvocation) {
    try {
      binder.stop(encodeJob(jobInvocation), needToSendResult);
    } catch (RemoteException remoteException) {
      Log.e(TAG, "Failed to stop a job", remoteException);
      unbind();
    }
  }
Stops provided {@link JobInvocation job}.

<p>Unbinds the service if {@code needToSendResult} is {@code false} and no other jobs are
running.
jobdispatcher/src/main/java/com/firebase/jobdispatcher/JobServiceConnection.java