Face Recognition

The windows is not getting closed after I press ‘q’.
Here is my code-