Added exception handling for a unknown host