fixed bug in too eager datafile removal