What causes a volcano to become dormant?

A. Lack of nearby hot spots
B. Extensive cooling of magma
C. Shift in tectonic plates
D. Volcanic eruption releasing all magma