strcmp with "quit\n" or "exit\n". Fix #2253.