Check for a pid rather than the connected property.