title: OSX - How to auto Close Terminal window after the "exit" command executed.
body: <p>When I'm done with Terminal, I want to exit it. Right now, I have three options:</p>
  
  <ol>
  <li><p>killall Terminal. It will end the process, but rather abruptly. I don't think this is the best idea.</p></li>
  <li><p>Call exit. I've changed the settings so exit closes Terminal. The app still appears open in the Dock though, and doesn't do what I want it to do.</p></li>
  <li><p>Right click>Quit. However, this isn't a Terminal command to exit it.</p></li>
  </ol>
  
  <p>So now, what is the way I should exit and close Terminal? I've heard something about osascript but I'm not too sure. I want to exit and close, so that Terminal is no longer open, both as a window and as a process.</p>