You could make a batch file that will wait a certain amount of time, then begin a shut down. That way your computer shuts down too.
This may work for windows XP (probably would work with vista and 7), type the following in notepad, save it, then rename to a .bat file (or save it as a .bat file...