added quitChecker