In this case, you have to force quit the screen recorder. This can be done in two ways. In one way, click the Apple menu > select Force Quit > select the freezing application > click Force Quit. In another way, open Activity Monitor from Launchpad > select the freezing application > click “X”  under CPU tab > click Quit.