Solution 1: Try holding the power button until it turns off. Then start it up again.
Solution 2: If it won't turn off, take out the battery and unplug it.
Solution 3: If it just continues restarting, even after turning it off and on again, try waiting 12 hours straight with it on and plugged...