If input is bad, we still need to clear the buffer.