Catch WebExceptions to  prevent crashes.