Pre-cleanup with PID