Protect against a bad pid