code: private void stopRoundTripMeasurement() {
          if (keepAliveTask != null) {
              boolean cancelled = keepAliveTask.cancel(true);
              keepAliveTask = null;
              if (cancelled && log.isDebugEnabled()) {
                  log.debug("Keep alive was cancelled for {}", sessionId);
              }
          }
      }
docs: Stops measurement.