Correct exit on connect failure