Make the script more resilient to server errors.

In particular, this gets rid of stack traces when encountering pesky HTTP
500 errors while downloading a batch of classes---if one class gives errors
the exception would prevent other classes from being downloaded, which is
clearly suboptimal.