Check your fans aren't clogged too. Your system log should tell you if the shutdown is caused by heat.
open