added cathing of proxy errors. Hopefully this prevents hang-ups