There are a couple of things that you can do to stop it. Rubbing the arteries in the neck or bearing down like a bowel movement will usually stop it.
If you don't have this medical condition the above mentoned procedure can actually trigger a heart attack! Don't do this just to see what happens!