Quit correctly