code: function () {
      const oThis = this;
  
      process.on('SIGINT', function () {
        logger.info("Received SIGINT, cancelling block scaning");
        oThis.interruptSignalObtained = true;
      });
      process.on('SIGTERM', function () {
        logger.info("Received SIGTERM, cancelling block scaning");
        oThis.interruptSignalObtained = true;
      });
    }
docs: Register interrup signal handlers