ensure stale pid is removed.