log IP address in case of failure to open connection