[Core] Code style fix.
[Core] Slight handleSslErrors() reformatting.
[Core] Properly handle reply finishing in SSL errors handler.

Probably fixes #1533, I can't reproduce that one though.
[Core] Somewhat cleaner switch.