The most likely culprit is that the mug cake was overcooked. Try cooking for less time next time.