exchanging STARTTLS, core dump on SSL upgrade