This is also a way of forcing a reboot of a program.
Windows
Open Task Manager on Windows by either searching for Task List in the Start menu or right-clicking on the toolbar and selecting Task List
Select the Programs / Processes tab
Select the program that you want to close
Select End Job
Then you can open the program again.
Mac
Open Activity Monitor by searching for it on your Mac. Activity monitoring can also be found in Programs - Utilities
Find the Process Name that you want to close. The process name is usually identical to the program you want to close.
Click Stop
Then you can open the program again.