handles host connect failure and exits