Only quit Terminal if it was not running
Merge pull request #1 from rdparker/topic/fix-closing-terminal

Only quit Terminal if it was not running