- TLS flag should be passed as 0 or 1, and not undef to prevent a warning
- The Net::XMPP::Client often sets an error code itself during connection failure, so display if possible