_configureInterrupt(identifier, timeout, isDebugging) {
    let timer;
    const timeoutHandler = () => {
      // FIXME Whether should we stop or remove the function at edge?
      throw new Error(`Function ${identifier} timed out after ${timeout} seconds.`);
    };
    const signalHandler = (signal) => {
      console.info(`Execution of function ${identifier} was interrupted.`);
      if (timer) {
        clearTimeout(timer);
      }
      // FIXME Whether should we stop or remove the function at edge?
      throw new Error(); // equals to process.exit(-1);
    };
    if (!isDebugging) {
      timer = setTimeout(timeoutHandler, timeout * 1000);
    }
    process.on('SIGINT', signalHandler);
    process.on('SIGTERM', signalHandler);
    return timer;
  }
Configure what can interrupt the execution of the function.

@param identifier the identifier of the function.
@param timeout the timeout for the execution of the function.
@param isDebugging whether the execution is in debugging mode.
@returns {*} a timer to cancel the timeout interruption.
@private