Improve handling of START_TLS scenarios

- fix for  XNIO-196 (on start tls scenarios)
- improve shutdown handling on such scenarios (avoiding ugly exception messages)
- improve workaround for the bug found in SSLEngine.shutdownWrites.