To solve the problem of Windows 95/98 hanging on during shutdown:
- Click Start > Run
- Type regedit
- Local machine
- And change original fast reboot from 0 to 1.
- Reboot the machine.