|Either a program is refusing to close or you have a bad driver installed. If this has just started, might try using the restore feature in WIndows going back before the problem existed. |
If that doesn't fix it, what have you recently installed? What error messages are you getting when Windows starts or shuts down?