Added logging on connection exception.