flushing on breaks and errors