[bug 1012657] Catch and handle TransportError.

TransportError is the base class of all the errors we want to catch. I think.

r?