Provide context in warnings, reduce severity of TLS handshake error (fixes #437)