quit method