switch to urlfetch api, handle exceptions in base handler