Add support for timeouts on RPC calls.