Symptom
When you choose Quit in Terminal while active processes are in an open window, the window closes; but Terminal does not quit.
Solution
Choose Force Quit from the Apple Menu, and force quite the Terminal.
You can avoid this issue by either stopping all processes before quitting, or by closing the Terminal window before choosing Quit.
You can prevent this situation in other Terminal windows by doing the following:
1. Open Terminal. If a new window is not automatically opened, choose New Shell from the File menu.
2. Choose Window Settings from the Terminal menu.
3. Choose Processes from the pop-up menu in the Terminal Inspector window.
4. Under "Prompt before closing window", choose "Always" or "If there are processes other than".
5. If necessary, click "Use Settings as Defaults" . This will apply your changes to all new Terminal windows.