Minor refactoring
Minor refactoring; handle host unreachable error