Add error handling in server and client.
Add test for the error code in RpcController.
Change the done interface.