Handles wget errors