Robust against bad pid