Added proper exception for unresolved host