Log reason for connection failed exception

Change-Id: Idfdf43762fc3bd9abef33110cccd37d2d2f50df4
Merge "Log reason for connection failed exception"