code: public void terminateJob(String jobId, String terminateReason) throws BatchErrorException, IOException {
          terminateJob(jobId, terminateReason, null);
      }
docs: Terminates the specified job, marking it as completed.
  
  @param jobId The ID of the job.
  @param terminateReason The message to describe the reason the job has terminated. This text will appear when you call {@link JobExecutionInformation#terminateReason()}.
  @throws BatchErrorException Exception thrown when an error response is received from the Batch service.
  @throws IOException Exception thrown when there is an error in serialization/deserialization of data sent to/received from the Batch service.