fixes and improvements for nettys SslHandler