prevent errors when pid not found