Why does my car stereo keep turning off?

Why does my car stereo keep turning off? it turns itself off and restarts if i put the volume up much, its not mega loud or anything normal sound, its really annoying can someone help?
Answer
Gremlin,s...................or a ghost in the machine...........no seriously.........sound,s like a loose connection at your stereo.....check your plug in ....make sure it,s tight........other than that............check all connection,s & ground,s......if it still give,s you a problem.........it,s probubly in your stereo........good luck!