When nothing's left to extract from the bug, the mushrooms on its back leave spores on the bug's egg.
It scatters toxic spores from the mushroom cap. In China, the spores are used as herbal medicine.