How can you lose consciousness even though your thinking of things before you fall a sleep?[/b]
You don't lose consciousness. You slip into sleep onset with hypnagogia (the thoughts you think of going independant of your will) and then go into different stages of sleep and REM sleep with dreams.