Uruguay bowed out of the World Cup as goalkeeper Fernando Muslera's howler gifted Spain a 1-0 win in Guadalajara to secure top spot in Group H.