removed pids_to_clean global