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" ...