Remove useless code from download_all().
Extracted thread downloading behaviour into a new function download_thread_parts().
Download error handling for need_to_download_thread(...).
Formatting.
Remove a duplication.
Make refactored function point to local variables.
Add download error handling for thread downloading.
Change thread update error message.
Change "OPs" to "opening messages" for greater clarity.
Whitespace.