You may be able to force it with the shutdown Terminal command.
However, if an app is preventing shutdown, then it's usually because it requires you to do something, like save a document, or make some decision. If you're getting apps that are hanging or locking up at shutdown, then that's another problem that you need to fix.