Show a clearer message in some cases if connection fails

As per the commit message:

- 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