Only quit Terminal if it was not running