Some crashes were reported around PostWithRetry calling back to references that no longer exist.
- a059fdb chore: use shared_ptr for EventLogger
- Moving to
std::shared_ptrfor all callback functions to prevent capturingthis.- Being far more defensive around references