Change some logging output to make it easier to trace, in case of SSL handshare error, exit with error code, service monitor should pick it up.