I also have shutdown problems with 98SE. I had them before avast. Mine were network related. I found out that executing a “ipconfig /release_all” just before shutting down would make my system shut down in stead of hang.

Peter