Add logging on connect failure