state might be null here since the benchmark id might have been removed between the call to `containsKey` and get. I think it should rather be:
```java
BenchmarkState state = activeBenchmarks.get(benchmarkId);
if (state == null) {
    throw new ElasticsearchException("Benchmark with id [" + benchmarkId + "] is missing");
}
```