Wouldn't the program just quit if wget fails?