Just enable Fast User Switching (System Preferences...->Accounts->Login options). Then use it to switch to the login window when you leave your desk - nothing will be closed, but your apps and files will be safe.
That's better than password protecting an app, which is messy.