My friend is in a macOS environment and he wanted to call `os.system('exit')` at the end of his python script to make the terminal close. It doesn't. This doesn't surprise me but I would like to know *what* exactly is going on between the python script and the terminal when this call is made.

In my mental simulation the terminal should have to tell you that there are still running jobs, but that doesn't happen either.

As a side question : will some less common terminals close when a process calls this?