finishing long polling client