Hangs after running boot option

On Winduhs XP SP3 the program would run through the boot defrag option and then it would just hang at 'please wait'. I got around it by rebooting the computer and starting in safe mode.