fix(client): on handshake errors emit an error