Throw permanent_failure when TLS fails due to non-started SSL.
Close socket and send QUIT also when throwing error because SSL is not started.