ilmClient: fixed all client functions to return correct error code