SSL_shutdown() never returns -1, on error it returns 0. This fixes incidental "bad write retry" errors.