if you want to turn off sleep mode, go to:
Control Panel > Power Option > In the Left panel click on "Change when the computer sleeps" > Under Put the computer to sleep: Never
If that doesn't solve your problem, on the same page click "Change Advanced Power Settings", under Hard disk and Sleep options make sure they are set to 'Never'.