It looks like any failure from connect() is wrapped in {tcp, ...}:

https://github.com/basho/riak-erlang-client/blob/master/src/riakc_pb_socket.erl#L1217