We had similar situations with our users with WIN98 having to wait forever to shutdown their PCs.
Try this if it will work in your case:
Run Regedit and go to this key location:
HK_Current_User/Software/Microsoft/Windows/CurrentVersion
Under this key, create a sub-key and call it Shutdown.
Within Shutdown sub-key, create a DWord and call it LogoffSetting and assign a decimal value of 3
Still within Shutdown sub-key, create another DWord and call it ShutdownSetting and assign a decimal value of 3
Close the RegEditor.
Caution: Be careful in editing your registry as it may screw up everything!!!
Shutdown your PC and restart for the changes to take effect. The next time you try to shut down, it should shut down completely.
Hope this help!