PlotSink: implement proper logic for re-opening files