Click the apple and choose force quit. But do not force quit Finder.I can use Safari but can't shut down any programs.
The button will change to Relaunch and it if fine to do that, if Finder is the App that is Not Responding.But do not force quit Finder