Try splashing cold water in your face. Slap your self a few times. Turn on something that makes noise, like music. I would avoid recording your dreams, because it seems to be what got you stuck in the loop in the first place.
Gradually dimming the bedroom light with a warm color temperature helps me get tired in the evening, and fading it in to a cold color temperature in the morning helps me wake up.