silence log entry if 0 entries were processed
fix memleak
curl_slist_append() allocates string on its own
allow GC to be interrupted on shutdown

GC can run for a long time, and we may exceed the timeout
and the parent fcgi will kill -9 us, which is worse than
exiting on our own.