ended Client implementation