[API] More sanity checks in Client.