we remove() from _pending in the continuation after we close() the file

this means we don't need to clear _pending from flush(); in flush() we
do a toList() on the values Iterable to guarantee we won't be removing
from our active iterator