Added debugging print statements for connection_open failures