Disable automatic opening of applications on restart/login

Open Terminal.app. Paste this in and hit return.

defaults write com.apple.loginwindow LoginwindowLaunchesRelaunchApps -bool false