Haha... that’s some good luck you had.
When we moved into our last house, there were dead and rotting remains of a decent sized tree next to the pool fence.
Didn’t like the way it was leaning, so I tossed a rope over a decent branch about 20’ up the tree, and was going to stake the rope down to control the fall and ensure the tree didn’t wind up in the pool.
As I pulled the rope tight around the branch, the trunk crumbled and the whole tree came down about a foot outside the fence. I was lucky to get out of the way.
And there sat the chainsaw, never even started.
Close call! Glad you weren’t hurt.