Fix occasional crash within SSLWrite caused by failing to reset sslWriteCachedLength to 0 on disconnect.