Give specific warnings when client-side onionskin handshakes fail

Fix for bug9635.
Better log message when writing a CR in text mode on windows

Help to diagnose #11233
Merge remote-tracking branch 'public/bug11233_diagnose'
Merge remote-tracking branch 'public/bug9635'
have only one code path for #9635 logging