axtls: prevent memleaks on SSL handshake failures