Bash script to shutdown when idle and downloads are finished.