Unsure where this change was made; should never have been modified
Refactored out set_conn_failed and get_conn_failed from waldoEndpoint and into partner_connection_failed. This is the method which should be called on any network failure when communicating with the partner. Uses the connection mutex to protect race conditions to make sure _raise_network_exception does not get called twice; that is, once the connection fails and this method is called, calling it again should not do anything. In this sense, once the method is called once it is idempotent.