Remove all previously created event listeners, such as those created with ListenToAll.
await contract.Events.RemoveAllListeners();