Prevent file deletion on transaction rollback