add a small timeout here
add a small timeout here

Unclear why this is necessary but I found in some cases this failed
when terminating a worker normally.

dimagi/commcare-hq,dimagi/commcare-hq,dimagi/commcare-hq,dimagi/commcare-hq,dimagi/commcare-hq