Implemented quit()