Not a full fix: But does your computer support Hibernate? If it does, then you could hibernate the computer instead of shutting it down. When you start it back up, it will start from where it left off. If anything else, this will prevent the repetition.