Solutions for windows automatic shutdown