Exits when quit is input