@whimboo 
With this pull, when we run into a timeout, the three retries are run and then a TimeoutException is raised.

When leaving pbar.finish() out of the code, the new prompt will appear on top of the progressbar after the download is completed. With it a newline is started before the new prompt is displayed.