add error logging for failed connection attempt