relay: do not immediately shutdown (and crash) #289
relay: do not immediately shutdown (and crash) #289

There is two bugs here:
1. the failed worker check was off-by-one (due to code changes for
   regex_t per thread)
2. the sentinel was written over the last worker

grobian/carbon-c-relay,grobian/carbon-c-relay,grobian/carbon-c-relay