Added quit method