OS X menu bar missing after application crash
You might try force quitting Dock with killall Dock. It should be reopened automatically by launchd. The Dock process seems to be responsible for many general UI features like Mission Control and the application switcher.

You can usually just log out and back in instead of restarting the OS. sudo killall loginwindow would be even faster than that, but it only seems to quit some processes.