improve remote host addr resolution
stop after error count exceeds predefined amount
stop after receiving SIGINT