code: async def close_async(self, context, reason):
          
          logger.info("Connection closed (reason {}, id {}, offset {}, sq_number {})".format(
              reason,
              context.partition_id,
              context.offset,
              context.sequence_number))
docs: Called by processor host to indicate that the event processor is being stopped.
          :param context: Information about the partition
          :type context: ~azure.eventprocessorhost.PartitionContext