Reduce duplication by moving download exception code to utils.
Handle urllib.http.client.IncompleteRead exception.
Change error message formatting.
Change a debug message in a minor way.
Change "main" to "main()" in log messages.
Tweak a log message.
Remove an unnecessary pass statement.