Unexpected random shutdowns in Galaxy S2
Automatic shut off can mean any of these;


too many running applications running in the background. (Start your your phone in CLOCKWORLD and select to clear CACHE)
refrain from charging your phone while playing games and running so many applications as this may speed up the aging of your battery.
maybe its time you replace your battery if the above doesnt seem to work.