fix crash when stress client exit