client allow user callback to close on nonzero return

Signed-off-by: Andy Green <andy.green@linaro.org>