Added constructor with host only.
Handle IOException internally, re-throw as IllegalStateException after retry.
A supplier class to use in Spring applications