Quit logic moved.