fix(microservices): reset the mqtt client state when close fails
fix(microservices): reset the mqtt client state when close fails: a task in Trending-SWE1.0 (Harbor dataset). Title: fix(microservices): reset the mqtt client state when close fails
The task
**Title:** fix(microservices): reset the mqtt client state when close fails
Part of scalingX/Trending-SWE1.0.