fix for errorloop when tls has problems with e.g. key/cert