Power supply issues are the main cause of this problem. If your computer or printer is not directly connected to the main power source, say they are connected through a UPS, the UPS might be faulty.
Uh-oh. You're in the middle of work when your laptop suddenly shuts off. No problem, you'll just press the power button and ...