There can be several reasons why this may happen. These causes are different for Win 98 and 98 SE.
There is a patch available for the Win 98 (not SE) from Microsoft.
If you are using the Second Edition, then this problem may require more diagnosing. Causes can range from a video adapter not being assigned an IRQ in real mode to an incompatability with older bios firmware. Damaged files and incorrect registry settings can also be to blame.
The problem is worth diagnising for the following reason. When the computer is turned off with files open there is a capacity for file damage (f. ex. lost clusters to system files). This danger is the reason for starting up scandisk after an improper shutdown.
This is a fairly complex subject (especially with SE). If you are not using SE, call Microsoft no charge support and ask for the fix (be sure to reference Q196008). If it is SE that you are running I would suggest that you send e-mail to mshelp@microsoft.com. Place in the subject line the follow