Add quit method