Rebuilded host_is_up method (unuseful when connection is lost)