Add rescue to invalid urls