Fix of file(s) closing in csv and GNUplot observers