Your taskbar icons are trying to tell you something. Here’s what the most common ones—and their variations—really mean.
The easiest way to do it is to right-click the app's icon on the Dock, then click the "Quit" button. The Santa hat should be gone now. If it isn't, check whether the "Allow automatic icon changes" ...