Fixing a bug where the find in files cmdlet would error if a file is in use