If you are facing a strange problem of random shutdowns with your MacBook Pros, ,a href=”http://support.apple.com/kb/DL1474″>this System Management Controller (SMC) firmware update will solve it for you.
This update resolves an issue where a MacBook Pro being used with a power adapter may unexpectedly shut down under heavy workload if the battery charge level is near empty.
Remember that this is a firmware update. It involves a restart of your MacBook Pro and might run the fans at high speed. It is a good practice to install firmware updates with power cord plugged in to avoid sudden power loss.