Added better reporting of failed connection attempts