code: function executePreFailureCallback(error, errorResponse, event, context) {
    const handler = context && context.handler;
    const preFailureCallback = handler && handler.preFailureCallback;
    return typeof preFailureCallback === 'function' ?
      Promises.try(() => preFailureCallback(error, errorResponse, event, context))
        .catch(err => log(context, LogLevel.ERROR, err)) :
      Promise.resolve();
  }
docs: Executes the custom configured `preSuccessCallback` function (if any).
  @param {AppError} error - the error with which your Lambda was failed
  @param {Object} errorResponse - the error response derived from the error with which your Lambda was failed
  @param {AWSEvent} event - the AWS event passed to your handler
  @param {StandardHandlerContext} context - the context being used
  @param {PreFailureCallback|undefined} [context.handler.preFailureCallback] - an optional function to be used by an
  AWS Lambda `handler` to run any needed shutdown logic immediately before failing the Lambda callback
  @return {Promise.<*>} a promise of anything - any errors are logged, but no rejections can escape