close open files before opening a new story