In short you are saying that you removed the heatsink over the processor, cleaned it and put it back? If it's the case, you might want to NOT start the computer until you open it back and put some thermal paste between the processor and the heatsink, or else the computer will do as you say, shut down by itself because of overheating.