Hibernate/Sleep problem
Go to System Preferences > Energy Saver. Change the sleep settings for both on Battery and While charinging.


Alternatively you could use NoSleep to make sure your MBP never goes to sleep.