When socket connection to resolve hostname fails, try again.
Extra test to make sure every cluster is allocated something.
fix indentation.