Flushing the decorated stream when seeking and closing