fix(core): Explicitly flush log buffer in client.close()
#19371
+20
−0
client.close()
#19371