Handles more transport-level exceptions and reraises as TransportError.