script exits 1 if error from web service.