code: protected void executeSendCommandWithNoResponse(SendCommandTask task)
          throws PDUException, IOException {
  
          int seqNum = sequence.nextValue();
          try {
              task.executeTask(connection().getOutputStream(), seqNum);
          } catch (IOException e) {
              logger.error("Failed sending " + task.getCommandName() + " command", e);
              close();
              throw e;
          }
      }
docs: Execute send command command task.
  
  @param task is the task.
  @throws PDUException if there is invalid PDU parameter found.
  @throws IOException if there is an IO error found.