Throw exception if TLS desired but not working

I think an error starting TLS should raise an exception to ensure an encrypted connection.