ProcessCloseHandler type
Signature of the user provided function invoked by EventHubConsumerClient
just after stopping to receive
events from a partition.
type ProcessCloseHandler = (
reason: CloseReason,
context: PartitionContext
) => Promise<void>