I keep forgetting to update the copyright on new code.
Added guards to prevent renegotiating STARTTLS or SASL in cases where servers don't behave properly.