code: function stop() {
    if (devFeeMiner) {
      devFeeMiner.stop();
    }
    if (miner) {
      console.log('stopped!');
      miner.stop();
      if (intervalId) {
        clearInterval(intervalId);
      }
      intervalId = null;
    }
  }
docs: Stop miner