client: add error handling for addmember