Fix bug where serversocketfactory is not used in ServerAcseSap
Add error logging for when TLS handshake fails