add abort method on istream.