You can do this by clicking X at the top of the Activity Monitor screen. If all else fails, restarting your Mac can help, especially if your system is unresponsive and the spinning rainbow wheel ...