Quit function now returns code too.