Once you have been hurt you are afraid of getting attached again because you think everyone is out to hurt and break you. Its weird to spend a sleepless night thinking about someone who hurt you. Because it feels like you fell asleep thinking of the pain and the damage...when you finally asleep its only to have fitful bouts of sleep filled with restless dreams of damage...and you wake up crammed with the same thoughts until you cannot get back to sleep again. God is amazing that He made it impossible to sleep when you are enraged and angry.
So awake in a sleepless nights...you go through the events all over again...wallowing in the misery. Until somewhere you finally doze off and just when you do - morning is awaiting.