Allow tests and shutdown to drain in-memory workers before TempDir cleanup. Co-authored-by: Cursor <cursoragent@cursor.com>