public void stop() {
    if (webSocket != null && !webSocket.isClosed()) {
      webSocket.close();
    }
    if (reportScheduler != null) {
      reportScheduler.cancel(true);
    }
  }
Ends the current web socket connection, observers and schedulers
ethereum/ethstats/src/main/java/org/hyperledger/besu/ethstats/EthStatsService.java