PERL-305 check for connection before attempting SASL auth