reset client on error