I think there are free software readily available that can shutdown/sleep/hibernate the computer if its idle for extended period of time. This would solve the unsaved work problem, raised above, if a computer forcibly shutdown using a script. I don't have any specific program in mind right now though.