MacBook Pro (13-inch, Mid 2010) shuts down unexpectedly
Here is a Terminal command to find out what is shutting down your computer.

syslog -k Sender kernel -k Message CSeq 'n Cause: -' | tail | awk '/:/{$4=""; print}' | pbcopy


It will save a text format copy to your desktop.