I have a use case where the resty server will use ngx.sleep to poll the backend resources periodically, when I ran a simple test: curl and kill it, the resty handler doesn't stop, (which is good), but how do I check if the client closes its connection so the handler can stop polling?