death was certainly there - your death. it was your fear of your own death that enabled you to get hooked to this thing. Can't say for sure, but I suspect what you met was one of those spirits that delight in going around terrifying people. In which case, they are a waste of time, except that it moved you into a space where you began to get a glimpse of your own death.
If it had been me, I would have left that room immediately on entering and feeling the spirit - would have demanded another room, then gone off to sleep. I don't have time for those kinds of spirits, as they have no knowledge - they can only terrify people through the fear of death.
However, it could have been something else, but I would be surprised if it were that, as it would not have let you go, and anyway, you would have had to be closer to the cliff edge to met it.
So I'd say, it woke you up, to realising there are more things in the world.... and that was a blessing. next time, just change rooms and don't believe such things don't exist.