Protect against access denied in find_pids

Came across this failure when running on local mac.