When I was in my late teens/early 20s it happened to me a few times. It felt very similar to what you described except my thoughts were not as clear. Each time I closed my eyes I would be back in a dream. Finally I figured out I could turn on my TV if my remote was close and the noise snapped me out of it. It would take me forever to move my hand to the remote at my side.