Check the download url only after we are sure it isnt' nul
Only start the program manually if the error was upon initial connection