Quick Answer
If a microwave sparks, stop the cycle immediately and disconnect power if it is safe to do so. After the cavity cools, remove foil, twist ties, metallic dishes, or a rack placed incorrectly, then inspect for burnt food, chipped interior
[...]