better error handling and reporting
litte script to show progressbar during sleep