Improve error handling in the driver.

Raise errors to the client as they return from the server.