Add debug logging on connection refused to show the URL that failed

While debugging a problem with a hung Jenkins deployment, it was very helpful to have the URL logged in the debug log.