flush all input on a read error