remove SSL_MODE_ACCEPT_MOVING_WRITE_BUFFER, we never need it, the "bad write retry" error was caused by SSL_shutdown() error