How to stop Mountain Lion to stop shutting down and closing all my applications?
When you say it "logs your account off" do you mean that you have to enter your password?

My guess is that someone has set Security &amp; Privacy settings to require a login password after sleep or screen saver begins. Go to Apple menu > System Preferences, click Security &amp; Privacy, and then click General to see.