HF RL Explorer

fix(microservices): await the mqtt close and reset the client state

fix(microservices): await the mqtt close and reset the client state: a task in Trending-SWE1.0 (Harbor dataset). Title: fix(microservices): await the mqtt close and reset the client state

The task

**Title:** fix(microservices): await the mqtt close and reset the client state

Part of scalingX/Trending-SWE1.0.