It would be a better option. But to add that programmatically ccleaner would have to always be running. then be able to catch the system shut down event. Pause it. Run ccleaner, then shut down the computer. This would be a hughe task to try and achive.