MDL-40898 try to work around some buggy open file handlers in restore code