I didn't sleep well when I took Lipitor either but the problem continued after I quit taking it also (about a month now). One of the supplements I take is Niacin (500mg non-flushing) and I was taking it in the mornings with other supplements until I read an article somewhere that said Niacin would aid in sleeping.
Long story short, I started taking it in the evenings just to see for myself and low and behold, I have been sleeping much better. This has been going on about 4 nights now but don't let me excite you - it could be a fluke. I'll keep you posted though. Last night I went to bed at 9:30 and woke up at my usual 5 am. First time I've had that much sleep at one time in years.