undo change quit to raise SystemExit and stop pipe