message: Suppress producer errors when deli is closed
diff: @@ -202,9 +202,8 @@ export class DeliLambda extends TypedEventEmitter<IDeliLambdaEvents> implements
  };
  private noActiveClients: boolean;
  - // eslint-disable-next-line @typescript-eslint/ban-ts-comment
  - // @ts-ignore
  - private canClose = false;
  +
  + private closed: boolean = false;
  // mapping of enabled nack message types. messages will be nacked based on the provided info
  private readonly nackMessages: Map<NackMessagesType, INackMessagesControlMessageContents>;
  @@ -489,6 +488,8 @@ export class DeliLambda extends TypedEventEmitter<IDeliLambdaEvents> implements
  }
  public close(closeType: LambdaCloseType) {
  + this.closed = true;
  +
  this.checkpointContext.close();
  this.clearActivityIdleTimer();
  @@ -510,6 +511,10 @@ export class DeliLambda extends TypedEventEmitter<IDeliLambdaEvents> implements
  this.lastSendP = producer
  .send([message], message.tenantId, message.documentId)
  .catch((error) => {
  + if (this.closed) {
  + return;
  + }
  +
  const errorMsg = "Could not send message to producer";
  this.context.log?.error(
  `${errorMsg}: ${JSON.stringify(error)}`,
  @@ -701,8 +706,6 @@ export class DeliLambda extends TypedEventEmitter<IDeliLambdaEvents> implements
  // Return if the client has already been added due to a prior join message.
  return;
  }
  -
  - this.canClose = false;
  }
  }
  } else {
  @@ -846,7 +849,6 @@ export class DeliLambda extends TypedEventEmitter<IDeliLambdaEvents> implements
  // Deli cache is only cleared when no clients have joined since last noClient was sent to alfred
  if (controlContents.clearCache && this.noActiveClients) {
  instruction = InstructionType.ClearCache;
  - this.canClose = true;
  const deliCacheMsg = `Deli cache will be cleared`;
  this.context.log?.info(deliCacheMsg, {
  messageMetaData: {
  @@ -1080,6 +1082,10 @@ export class DeliLambda extends TypedEventEmitter<IDeliLambdaEvents> implements
  try {
  await this.rawDeltasProducer.send([message], message.tenantId, message.documentId);
  } catch (error) {
  + if (this.closed) {
  + return;
  + }
  +
  const errorMsg = `Could not send message to alfred`;
  this.context.log?.error(
  `${errorMsg}: ${JSON.stringify(error)}`,
  