Potential fix for SslHandler dead lock

- Related with: #1181