I have extreme difficulty in sleeping, and I do think that it's in part due to my not "unplugging" until just before I turn the lights out. Depending on what's been going on where I've been surfing or reading or chatting, my mind can't catch up and realize it's time to sleep. I've heard that it's best to pull yourself away from electronics/technology for at least an hour before attempting to go to sleep.
... I've yet to implement that, though.