Not entirely sure what the referenced "cascade delete" problem was, but masking file_ptr is breaking tests.