Added getByHostName. Check for disconnect.