refactor CheckHostAliveHandler