MQTT/WS cleanup