Every time the challenge du jour pops into my head before sleep I just end up thinking about it for hours. And not sleeping. It's tough.
A friend of mine told me she has a similar issue and has a special meditation that she does in bed to wind her brain down. I should email her, but if anyone has ways they deal with this issue, I'd love to hear them.
I do however think about tough issues when I'm half asleep in the morning, reaching for the snooze button. (Sometimes it's counterproductive, making me want to snooze more to make the world go away, but I reach some surprising insights here - and then crystallise them in the shower, of course!)