Prevent deadlock if a XMPP certificate validation fails