Simple time app. You can set the time after which iTunes is stopped, the computer is put to sleep, shut down or a custom AppleScript is run.