Did you install something recently, or made any hardware changes?
You can try a system restore if it happened recently.
Also try going into Start > Run then type msconfig then select diagnostic startup and OK.
See if it closes normally with minimum devices and drivers.
Or you can try to uncheck some services you don't need from Services tab in msconfig.