Added quit() method.