Add quit/escape functionality