Changed exception handled when host not found