Added error handling for weather service