Add some logging and catch proxy errors.