Cipher suite selection for client connections, improved error handling