Added quitChecker method to enable shutdown.