Avoid freeze on file deletion