Use std::tuple for protocols.

Exception handling for client.cc