Is there a better way to shutdown/restart OSX? Whenever I want to shutdown/restart OSX I click on the menu, select shutdown, and then click the box for not saving the session, and then click OK. Then there's always at least one program that interrupts the shutdown process. 

Is there an easier way to do this? Maybe by using the terminal? I was thinking of shutdown -h now, but that way seems kind of "dirty." What are some ways to do it?
If you don't care about saving the session, you can simply hit Ctrl + Option + ⌘ + ⏏ for Shutdown or Ctrl + ⌘ + ⏏ for Restart

You can also check out this post (Disable "Reopen Windows") on disabling resume if you don't want that. There is another solution posted here on Apple's forums for disabling the feature by William Donelson (second post by him on the page).