Exact same problem here. I spent a great deal of time eliminating programs that start up with Windows, but to no avail. Usually, logoff would eventually take place after a very long time, but sometimes had to press power button to regain control of computer.
Solved the problem by doing a clean install. It seems that there is a problem in the installation code by which Vista is upgraded to Windows 7.