Close your eyes. Pop in some ear buds and just relax for a second. Sensory deprivation calms them. I usually take a pain killer as soon as I feel one coming on. I'd rather ward it off before I get a migraine otherwise I contemplate just smacking my head against a brick wall to dull the pain.