You could try using the Defraggler program by Piriform. It gives you the option to defrag the files rather than defrag the whole computer. I found that my system got hung on defragging so I defragged the files, then defragged the whole PC. I don't know how but it stopped getting stuck.