SingleCellView plugin: handle the case when a file is being closed.