Oh dear. So sorry Genevieve. I had a horrendous experience with cockroaches up here in Cairns. The got into my TM31 and were cooked on the motherboard. Of course my TMX had to go back for fixing. I din't know how you lure them out without luring more in!! After Mine came home I bought a nightlight to plug in next to my TMX. It automatically turned on after dark. Cockroaches hate the bright lights. I also had my regular (yearly) termite/bug man puff some insect stuff into the machine as well as using the cockroach gel paste around and under the machine. I never had another problem after that.
It is a not uncommon problem at all as there are many reports from many other places with the same problem ie: Malayasia. Singapore, South Africa the Phillipines and other places. Vorwerk is well aware of this problem and that is why the TM5 has an added mesh to prevent bugs getting into those cosy spots.
I think my nightlight was the best and safest deterrent. Hope your TMX is ok.
Gertbysea