Added appropriate error handling for Foursquare service.