This often occurs after the program folder, or a portion of the files from a software package, has been sent to the recycle bin. This method of removing a program can leave remnants in the system registry or other program folders. These remnants can cause your operating system to stop responding while they try to connect to the missing portion.
To prevent the computer from not responding at random times: