worker: only shutdown gracefully on term in borg