Prevent OS X Mavericks from autoquitting applications for sleep
Go to System Preferences, choose "Security &amp; Privacy" and click on the locker on the lower left. Insert your password and click on "Advanced" on lower right.
Uncheck "Log out after ... minutes of inactivity"