Cleaner if EOF use QUIT instead of returning 0