OS X 10.9.4 closes application when sleeping First time to have MBP retina. My issue on my MBP is when I close my MBP to transfer to another location (house to coffee shop), when I open my MBP I notice that it closes the apps I have open before I leave the house.

I used chrome &amp; opened 4 to 8 tabs, then when I arrived at the coffee shop it open the chrome again but the tabs are not there. It says "Google Chrome didn't shutdown properly" then a button "Click to restore tabs.
I open sublime text editor on desktop 2, when I open the MBP the sublime is now located at desktop 1.

It is kinda weird, because my friend and I has the same MBP, but he is not experience this kind of issue. Someone can help me out this?

Summary: "I come back to work the system is locked down (i.e. I have to put my password), which is fine, and all applications are closed. They do however re-start and try to recover the state as I left them."
It sounds like your Mac is set to automatically log you out after a period of inactivity.

Open System Preferences from the Apple menu in the top-left corner. Open the "Security &amp; Privacy" preference pane. Click on the "Advanced..." button in the bottom-right corner. You may need to unlock the pane using the padlock icon in the bottom-left corner.

I think you'll find "Log out after XX minutes of inactivity" ticked. Untick it.